@@ -260,7 +260,7 @@ async def test_pagination(app_client, load_test_data):
260
260
assert second_page ["context" ]["returned" ] == 3
261
261
262
262
263
- async def test_item_timestamps (app_client , ctx , load_test_data ):
263
+ async def test_item_timestamps (app_client , ctx ):
264
264
"""Test created and updated timestamps (common metadata)"""
265
265
# start_time = now_to_rfc3339_str()
266
266
@@ -335,7 +335,7 @@ async def test_item_search_temporal_query_post(app_client, ctx):
335
335
assert resp_json ["features" ][0 ]["id" ] == test_item ["id" ]
336
336
337
337
338
- async def test_item_search_temporal_window_post (app_client , load_test_data , ctx ):
338
+ async def test_item_search_temporal_window_post (app_client , ctx ):
339
339
"""Test POST search with two-tailed spatio-temporal query (core)"""
340
340
test_item = ctx .item
341
341
@@ -649,15 +649,15 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):
649
649
]
650
650
651
651
652
- async def test_field_extension_get_includes (app_client ):
652
+ async def test_field_extension_get_includes (app_client , ctx ):
653
653
"""Test GET search with included fields (fields extension)"""
654
654
params = {"fields" : "+properties.proj:epsg,+properties.gsd" }
655
655
resp = await app_client .get ("/search" , params = params )
656
656
feat_properties = resp .json ()["features" ][0 ]["properties" ]
657
657
assert not set (feat_properties ) - {"proj:epsg" , "gsd" , "datetime" }
658
658
659
659
660
- async def test_field_extension_get_excludes (app_client ):
660
+ async def test_field_extension_get_excludes (app_client , ctx ):
661
661
"""Test GET search with included fields (fields extension)"""
662
662
params = {"fields" : "-properties.proj:epsg,-properties.gsd" }
663
663
resp = await app_client .get ("/search" , params = params )
@@ -666,7 +666,7 @@ async def test_field_extension_get_excludes(app_client):
666
666
assert "gsd" not in resp_json ["features" ][0 ]["properties" ].keys ()
667
667
668
668
669
- async def test_field_extension_post (app_client ):
669
+ async def test_field_extension_post (app_client , ctx ):
670
670
"""Test POST search with included and excluded fields (fields extension)"""
671
671
body = {
672
672
"fields" : {
@@ -685,7 +685,7 @@ async def test_field_extension_post(app_client):
685
685
}
686
686
687
687
688
- async def test_field_extension_exclude_and_include (app_client , load_test_data ):
688
+ async def test_field_extension_exclude_and_include (app_client , ctx ):
689
689
"""Test POST search including/excluding same field (fields extension)"""
690
690
body = {
691
691
"fields" : {
@@ -699,7 +699,7 @@ async def test_field_extension_exclude_and_include(app_client, load_test_data):
699
699
assert "eo:cloud_cover" not in resp_json ["features" ][0 ]["properties" ]
700
700
701
701
702
- async def test_field_extension_exclude_default_includes (app_client , load_test_data ):
702
+ async def test_field_extension_exclude_default_includes (app_client , ctx ):
703
703
"""Test POST search excluding a forbidden field (fields extension)"""
704
704
body = {"fields" : {"exclude" : ["gsd" ]}}
705
705
0 commit comments