|
@@ -544,11 +544,27 @@ class TestLdp:
|
|
|
headers={'content-type': 'application/sparql-update'}
|
|
|
).status_code == 412
|
|
|
|
|
|
+ assert self.client.patch(
|
|
|
+ path, data=ins_qry1,
|
|
|
+ headers={
|
|
|
+ 'content-type': 'application/sparql-update',
|
|
|
+ 'prefer': 'handling=lenient',
|
|
|
+ }
|
|
|
+ ).status_code == 204
|
|
|
+
|
|
|
assert self.client.patch(
|
|
|
path, data=ins_qry2,
|
|
|
headers={'content-type': 'application/sparql-update'}
|
|
|
).status_code == 412
|
|
|
|
|
|
+ assert self.client.patch(
|
|
|
+ path, data=ins_qry2,
|
|
|
+ headers={
|
|
|
+ 'content-type': 'application/sparql-update',
|
|
|
+ 'prefer': 'handling=lenient',
|
|
|
+ }
|
|
|
+ ).status_code == 204
|
|
|
+
|
|
|
assert self.client.patch(
|
|
|
path, data=ins_qry3,
|
|
|
headers={'content-type': 'application/sparql-update'}
|
|
@@ -559,11 +575,27 @@ class TestLdp:
|
|
|
headers={'content-type': 'application/sparql-update'}
|
|
|
).status_code == 412
|
|
|
|
|
|
+ assert self.client.patch(
|
|
|
+ path, data=del_qry1,
|
|
|
+ headers={
|
|
|
+ 'content-type': 'application/sparql-update',
|
|
|
+ 'prefer': 'handling=lenient',
|
|
|
+ }
|
|
|
+ ).status_code == 204
|
|
|
+
|
|
|
assert self.client.patch(
|
|
|
path, data=del_qry2,
|
|
|
headers={'content-type': 'application/sparql-update'}
|
|
|
).status_code == 412
|
|
|
|
|
|
+ assert self.client.patch(
|
|
|
+ path, data=ins_qry2,
|
|
|
+ headers={
|
|
|
+ 'content-type': 'application/sparql-update',
|
|
|
+ 'prefer': 'handling=lenient',
|
|
|
+ }
|
|
|
+ ).status_code == 204
|
|
|
+
|
|
|
assert self.client.patch(
|
|
|
path, data=del_qry3,
|
|
|
headers={'content-type': 'application/sparql-update'}
|