@@ -698,7 +698,7 @@ def test_delete_non_empty_collection(self, client, a_minimal_collection, a_corre
698698 """
699699 first_get_collection_response = client .get ("/catalog/collections/fixture_owner:fixture_collection/items" )
700700 assert first_get_collection_response .status_code == fastapi .status .HTTP_200_OK
701- assert json .loads (first_get_collection_response .content )["context" ][ "returned " ] == 0
701+ assert json .loads (first_get_collection_response .content )["numberReturned " ] == 0
702702 # Post the feature to the collection
703703 updated_feature_sent = copy .deepcopy (a_correct_feature )
704704 updated_feature_sent ["collection" ] = "fixture_collection"
@@ -710,7 +710,7 @@ def test_delete_non_empty_collection(self, client, a_minimal_collection, a_corre
710710 # Test that the collection is not empty
711711 second_get_collection_response = client .get ("/catalog/collections/fixture_owner:fixture_collection/items" )
712712 assert second_get_collection_response .status_code == fastapi .status .HTTP_200_OK
713- assert json .loads (second_get_collection_response .content )["context" ][ "returned " ] > 0
713+ assert json .loads (second_get_collection_response .content )["numberReturned " ] > 0
714714 # Delete the collection
715715 delete_response = client .delete ("/catalog/collections/fixture_owner:fixture_collection" )
716716 assert delete_response .status_code == fastapi .status .HTTP_200_OK
@@ -1480,7 +1480,7 @@ def test_create_new_minimal_feature(self, client, a_minimal_collection, a_correc
14801480 assert check_features_response .status_code == fastapi .status .HTTP_200_OK
14811481 # Test if query returns only one feature for this collection
14821482 returned_features = json .loads (check_features_response .content )
1483- assert returned_features ["context" ][ "returned " ] == 1
1483+ assert returned_features ["numberReturned " ] == 1
14841484 # Test feature content
14851485 assert returned_features ["features" ][0 ]["id" ] == a_correct_feature ["id" ]
14861486 assert returned_features ["features" ][0 ]["geometry" ] == a_correct_feature ["geometry" ]
@@ -1696,7 +1696,7 @@ def test_delete_a_correct_feature(self, client, a_minimal_collection, a_correct_
16961696 collection_content_response = client .get ("/catalog/collections/fixture_owner:fixture_collection/items" )
16971697 assert collection_content_response .status_code == fastapi .status .HTTP_200_OK
16981698 collection_content_response = json .loads (collection_content_response .content )
1699- assert collection_content_response ["context" ][ "returned " ] == 0
1699+ assert collection_content_response ["numberReturned " ] == 0
17001700 assert (
17011701 client .delete ("/catalog/collections/fixture_owner:fixture_collection" ).status_code
17021702 == fastapi .status .HTTP_200_OK
0 commit comments