@@ -652,7 +652,10 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):
652
652
async def test_field_extension_get_includes (app_client , ctx ):
653
653
"""Test GET search with included fields (fields extension)"""
654
654
test_item = ctx .item
655
- params = {"ids" : [test_item ["id" ]], "fields" : "+properties.proj:epsg,+properties.gsd" }
655
+ params = {
656
+ "ids" : [test_item ["id" ]],
657
+ "fields" : "+properties.proj:epsg,+properties.gsd" ,
658
+ }
656
659
resp = await app_client .get ("/search" , params = params )
657
660
feat_properties = resp .json ()["features" ][0 ]["properties" ]
658
661
assert not set (feat_properties ) - {"proj:epsg" , "gsd" , "datetime" }
@@ -661,7 +664,10 @@ async def test_field_extension_get_includes(app_client, ctx):
661
664
async def test_field_extension_get_excludes (app_client , ctx ):
662
665
"""Test GET search with included fields (fields extension)"""
663
666
test_item = ctx .item
664
- params = {"ids" : [test_item ["id" ]], "fields" : "-properties.proj:epsg,-properties.gsd" }
667
+ params = {
668
+ "ids" : [test_item ["id" ]],
669
+ "fields" : "-properties.proj:epsg,-properties.gsd" ,
670
+ }
665
671
resp = await app_client .get ("/search" , params = params )
666
672
resp_json = resp .json ()
667
673
assert "proj:epsg" not in resp_json ["features" ][0 ]["properties" ].keys ()
@@ -676,7 +682,7 @@ async def test_field_extension_post(app_client, ctx):
676
682
"fields" : {
677
683
"exclude" : ["assets.B1" ],
678
684
"include" : ["properties.eo:cloud_cover" , "properties.orientation" ],
679
- }
685
+ },
680
686
}
681
687
682
688
resp = await app_client .post ("/search" , json = body )
@@ -697,7 +703,7 @@ async def test_field_extension_exclude_and_include(app_client, ctx):
697
703
"fields" : {
698
704
"exclude" : ["properties.eo:cloud_cover" ],
699
705
"include" : ["properties.eo:cloud_cover" ],
700
- }
706
+ },
701
707
}
702
708
703
709
resp = await app_client .post ("/search" , json = body )
@@ -708,10 +714,7 @@ async def test_field_extension_exclude_and_include(app_client, ctx):
708
714
async def test_field_extension_exclude_default_includes (app_client , ctx ):
709
715
"""Test POST search excluding a forbidden field (fields extension)"""
710
716
test_item = ctx .item
711
- body = {
712
- "ids" : [test_item ["id" ]],
713
- "fields" : {"exclude" : ["gsd" ]}
714
- }
717
+ body = {"ids" : [test_item ["id" ]], "fields" : {"exclude" : ["gsd" ]}}
715
718
716
719
resp = await app_client .post ("/search" , json = body )
717
720
resp_json = resp .json ()
0 commit comments