Skip to content

Commit 381c637

Browse files
committed
update tests
1 parent 758095e commit 381c637

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stac_fastapi/api/tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def get_search(
191191
"collections": ["test"],
192192
"filter": {},
193193
"filter-crs": "EPSG:4326",
194-
"filter-lang": "cql2-text",
194+
"filter-lang": "cql2-json",
195195
},
196196
)
197197

stac_fastapi/api/tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def route(model=Depends(request_model)):
6363

6464
@pytest.mark.parametrize(
6565
"filter,passes",
66-
[(None, True), ({"test": "test"}, True), ("test==test", False), ([], False)],
66+
[(None, True), ({"test": "test"}, True), ([], False)],
6767
)
6868
def test_create_post_request_model(filter, passes):
6969
request_model = create_post_request_model(
@@ -82,7 +82,7 @@ def test_create_post_request_model(filter, passes):
8282
datetime="2020-01-01T00:00:00Z",
8383
limit=10,
8484
filter=filter,
85-
**{"filter-crs": "epsg:4326", "filter-lang": "cql2-text"},
85+
**{"filter-crs": "epsg:4326", "filter-lang": "cql2-json"},
8686
)
8787

8888
assert model.collections == ["test1", "test2"]

0 commit comments

Comments
 (0)