@@ -652,7 +652,10 @@ async def test_pagination_token_idempotent(app_client, ctx, txn_client):
652652async def test_field_extension_get_includes (app_client , ctx ):
653653 """Test GET search with included fields (fields extension)"""
654654 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+ }
656659 resp = await app_client .get ("/search" , params = params )
657660 feat_properties = resp .json ()["features" ][0 ]["properties" ]
658661 assert not set (feat_properties ) - {"proj:epsg" , "gsd" , "datetime" }
@@ -661,7 +664,10 @@ async def test_field_extension_get_includes(app_client, ctx):
661664async def test_field_extension_get_excludes (app_client , ctx ):
662665 """Test GET search with included fields (fields extension)"""
663666 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+ }
665671 resp = await app_client .get ("/search" , params = params )
666672 resp_json = resp .json ()
667673 assert "proj:epsg" not in resp_json ["features" ][0 ]["properties" ].keys ()
@@ -676,7 +682,7 @@ async def test_field_extension_post(app_client, ctx):
676682 "fields" : {
677683 "exclude" : ["assets.B1" ],
678684 "include" : ["properties.eo:cloud_cover" , "properties.orientation" ],
679- }
685+ },
680686 }
681687
682688 resp = await app_client .post ("/search" , json = body )
@@ -697,7 +703,7 @@ async def test_field_extension_exclude_and_include(app_client, ctx):
697703 "fields" : {
698704 "exclude" : ["properties.eo:cloud_cover" ],
699705 "include" : ["properties.eo:cloud_cover" ],
700- }
706+ },
701707 }
702708
703709 resp = await app_client .post ("/search" , json = body )
@@ -708,10 +714,7 @@ async def test_field_extension_exclude_and_include(app_client, ctx):
708714async def test_field_extension_exclude_default_includes (app_client , ctx ):
709715 """Test POST search excluding a forbidden field (fields extension)"""
710716 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" ]}}
715718
716719 resp = await app_client .post ("/search" , json = body )
717720 resp_json = resp .json ()
0 commit comments