@@ -178,7 +178,7 @@ async def test_aggregate_datetime_in_range(app_client, ctx):
178178@pytest .mark .asyncio
179179async def test_aggregate_filter_extension_eq_post (app_client , ctx ):
180180 params = {
181- "filter_expr " : {"op" : "=" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
181+ "filter " : {"op" : "=" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
182182 "filter_lang" : "cql2-json" ,
183183 "aggregations" : ["total_count" ],
184184 }
@@ -190,7 +190,7 @@ async def test_aggregate_filter_extension_eq_post(app_client, ctx):
190190@pytest .mark .asyncio
191191async def test_aggregate_filter_extension_neq_post (app_client , ctx ):
192192 params = {
193- "filter_expr " : {"op" : "<>" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
193+ "filter " : {"op" : "<>" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
194194 "filter_lang" : "cql2-json" ,
195195 "aggregations" : ["total_count" ],
196196 "collections" : [ctx .item ["collection" ]],
@@ -222,7 +222,7 @@ async def test_aggregate_extension_gte_get(app_client, ctx):
222222async def test_aggregate_filter_extension_gte_post (app_client , ctx ):
223223 # there's one item that can match, so one of these queries should match it and the other shouldn't
224224 params = {
225- "filter_expr " : {
225+ "filter " : {
226226 "op" : "<=" ,
227227 "args" : [
228228 {"property" : "properties.proj:epsg" },
@@ -238,7 +238,7 @@ async def test_aggregate_filter_extension_gte_post(app_client, ctx):
238238 assert resp .json ()["aggregations" ][0 ]["value" ] == 1
239239
240240 params = {
241- "filter_expr " : {
241+ "filter " : {
242242 "op" : ">" ,
243243 "args" : [
244244 {"property" : "properties.proj:epsg" },
@@ -271,7 +271,7 @@ async def test_search_aggregate_extension_wildcard_cql2(app_client, ctx):
271271 multi_char = ctx .item ["id" ][:- 3 ] + "%"
272272
273273 params = {
274- "filter_expr " : {
274+ "filter " : {
275275 "op" : "and" ,
276276 "args" : [
277277 {"op" : "=" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
@@ -307,7 +307,7 @@ async def test_aggregate_filter_extension_wildcard_es(app_client, ctx):
307307 multi_char = ctx .item ["id" ][:- 3 ] + "*"
308308
309309 params = {
310- "filter_expr " : {
310+ "filter " : {
311311 "op" : "and" ,
312312 "args" : [
313313 {"op" : "=" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
@@ -370,7 +370,7 @@ async def test_aggregate_filter_extension_in_no_list(app_client, ctx):
370370 product_id = ctx .item ["properties" ]["landsat:product_id" ]
371371
372372 params = {
373- "filter_expr " : {
373+ "filter " : {
374374 "op" : "and" ,
375375 "args" : [
376376 {"op" : "=" , "args" : [{"property" : "id" }, ctx .item ["id" ]]},
0 commit comments