Skip to content

Commit

Permalink
Assert item deletion response code for easier debugging (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jul 20, 2022
1 parent 560c3a1 commit ff05730
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/items/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def test_put_item(auth_client, itemgraph_db):

def test_delete_item(auth_client, itemgraph_db):
response, output_graph = submit_data(auth_client, Graph(), 'delete', 1)
assert response.status_code == 200
assert len(output_graph) == 6
assert (ITEM['1'], RDF.type, OA.TextQuoteSelector) in output_graph
assert len(set(graph().triples((ITEM['1'], None, None)))) == 0
Expand All @@ -143,6 +144,7 @@ def test_delete_item(auth_client, itemgraph_db):

def test_delete_item_super(super_client, itemgraph_db):
response, output_graph = submit_data(super_client, Graph(), 'delete', 1)
assert response.status_code == 200
assert len(output_graph) == 6
assert (ITEM['1'], RDF.type, OA.TextQuoteSelector) in output_graph
assert len(set(graph().triples((ITEM['1'], None, None)))) == 0
Expand Down

0 comments on commit ff05730

Please sign in to comment.