Skip to content

Commit 55a36d3

Browse files
committed
switch back to filter-lang
1 parent ba11623 commit 55a36d3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stac_fastapi/tests/extensions/test_aggregation.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def test_aggregate_datetime_in_range(app_client, ctx):
179179
async def test_aggregate_filter_extension_eq_post(app_client, ctx):
180180
params = {
181181
"filter": {"op": "=", "args": [{"property": "id"}, ctx.item["id"]]},
182-
"filter_lang": "cql2-json",
182+
"filter-lang": "cql2-json",
183183
"aggregations": ["total_count"],
184184
}
185185
resp = await app_client.post("/aggregate", json=params)
@@ -191,7 +191,7 @@ async def test_aggregate_filter_extension_eq_post(app_client, ctx):
191191
async def test_aggregate_filter_extension_neq_post(app_client, ctx):
192192
params = {
193193
"filter": {"op": "<>", "args": [{"property": "id"}, ctx.item["id"]]},
194-
"filter_lang": "cql2-json",
194+
"filter-lang": "cql2-json",
195195
"aggregations": ["total_count"],
196196
"collections": [ctx.item["collection"]],
197197
}
@@ -229,7 +229,7 @@ async def test_aggregate_filter_extension_gte_post(app_client, ctx):
229229
ctx.item["properties"]["proj:epsg"],
230230
],
231231
},
232-
"filter_lang": "cql2-json",
232+
"filter-lang": "cql2-json",
233233
"aggregations": ["total_count"],
234234
}
235235
resp = await app_client.post("/aggregate", json=params)
@@ -245,7 +245,7 @@ async def test_aggregate_filter_extension_gte_post(app_client, ctx):
245245
ctx.item["properties"]["proj:epsg"],
246246
],
247247
},
248-
"filter_lang": "cql2-json",
248+
"filter-lang": "cql2-json",
249249
"aggregations": ["total_count"],
250250
}
251251
resp = await app_client.post("/aggregate", json=params)
@@ -291,7 +291,7 @@ async def test_search_aggregate_extension_wildcard_cql2(app_client, ctx):
291291
},
292292
],
293293
},
294-
"filter_lang": "cql2-json",
294+
"filter-lang": "cql2-json",
295295
"aggregations": ["total_count"],
296296
}
297297

@@ -327,7 +327,7 @@ async def test_aggregate_filter_extension_wildcard_es(app_client, ctx):
327327
},
328328
],
329329
},
330-
"filter_lang": "cql2-json",
330+
"filter-lang": "cql2-json",
331331
"aggregations": ["total_count"],
332332
}
333333

@@ -383,7 +383,7 @@ async def test_aggregate_filter_extension_in_no_list(app_client, ctx):
383383
},
384384
],
385385
},
386-
"filter_lang": "cql2-json",
386+
"filter-lang": "cql2-json",
387387
"aggregations": ["total_count"],
388388
}
389389

0 commit comments

Comments
 (0)