@@ -226,7 +226,7 @@ async def test_get_item_collection(app_client, ctx, txn_client):
226226 assert resp .status_code == 200
227227
228228 item_collection = resp .json ()
229- if matched := item_collection .get ("numMatched " ):
229+ if matched := item_collection .get ("numberMatched " ):
230230 assert matched == item_count + 1
231231
232232
@@ -294,13 +294,13 @@ async def test_pagination(app_client, load_test_data):
294294 )
295295 assert resp .status_code == 200
296296 first_page = resp .json ()
297- assert first_page ["numReturned " ] == 3
297+ assert first_page ["numberReturned " ] == 3
298298
299299 url_components = urlsplit (first_page ["links" ][0 ]["href" ])
300300 resp = await app_client .get (f"{ url_components .path } ?{ url_components .query } " )
301301 assert resp .status_code == 200
302302 second_page = resp .json ()
303- assert second_page ["numReturned " ] == 3
303+ assert second_page ["numberReturned " ] == 3
304304
305305
306306@pytest .mark .skip (reason = "created and updated fields not be added with stac fastapi 3?" )
@@ -615,14 +615,14 @@ async def test_item_search_get_query_extension(app_client, ctx):
615615 ),
616616 }
617617 resp = await app_client .get ("/search" , params = params )
618- assert resp .json ()["numReturned " ] == 0
618+ assert resp .json ()["numberReturned " ] == 0
619619
620620 params ["query" ] = json .dumps (
621621 {"proj:epsg" : {"eq" : test_item ["properties" ]["proj:epsg" ]}}
622622 )
623623 resp = await app_client .get ("/search" , params = params )
624624 resp_json = resp .json ()
625- assert resp_json ["numReturned " ] == 1
625+ assert resp_json ["numberReturned " ] == 1
626626 assert (
627627 resp_json ["features" ][0 ]["properties" ]["proj:epsg" ]
628628 == test_item ["properties" ]["proj:epsg" ]
0 commit comments