From 381c637d650de98a9841240ca4e1c8b9a4324926 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Tue, 24 Sep 2024 22:19:27 +0200 Subject: [PATCH] update tests --- stac_fastapi/api/tests/test_app.py | 2 +- stac_fastapi/api/tests/test_models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stac_fastapi/api/tests/test_app.py b/stac_fastapi/api/tests/test_app.py index 0ddcb242..0887a62e 100644 --- a/stac_fastapi/api/tests/test_app.py +++ b/stac_fastapi/api/tests/test_app.py @@ -191,7 +191,7 @@ def get_search( "collections": ["test"], "filter": {}, "filter-crs": "EPSG:4326", - "filter-lang": "cql2-text", + "filter-lang": "cql2-json", }, ) diff --git a/stac_fastapi/api/tests/test_models.py b/stac_fastapi/api/tests/test_models.py index b0c2ad90..1df385d9 100644 --- a/stac_fastapi/api/tests/test_models.py +++ b/stac_fastapi/api/tests/test_models.py @@ -63,7 +63,7 @@ def route(model=Depends(request_model)): @pytest.mark.parametrize( "filter,passes", - [(None, True), ({"test": "test"}, True), ("test==test", False), ([], False)], + [(None, True), ({"test": "test"}, True), ([], False)], ) def test_create_post_request_model(filter, passes): request_model = create_post_request_model( @@ -82,7 +82,7 @@ def test_create_post_request_model(filter, passes): datetime="2020-01-01T00:00:00Z", limit=10, filter=filter, - **{"filter-crs": "epsg:4326", "filter-lang": "cql2-text"}, + **{"filter-crs": "epsg:4326", "filter-lang": "cql2-json"}, ) assert model.collections == ["test1", "test2"]