Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Sep 24, 2024
1 parent 758095e commit 381c637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stac_fastapi/api/tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_search(
"collections": ["test"],
"filter": {},
"filter-crs": "EPSG:4326",
"filter-lang": "cql2-text",
"filter-lang": "cql2-json",
},
)

Expand Down
4 changes: 2 additions & 2 deletions stac_fastapi/api/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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"]
Expand Down

0 comments on commit 381c637

Please sign in to comment.