Skip to content

Commit b9119b4

Browse files
committed
fix test that was successful with double-open-ended datetime interval to now fail
1 parent c9b83de commit b9119b4

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

stac_fastapi/sqlalchemy/tests/resources/test_item.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,14 +463,9 @@ def test_item_search_temporal_open_window(app_client, load_test_data):
463463
)
464464
assert resp.status_code == 200
465465

466-
params = {
467-
"collections": [test_item["collection"]],
468-
"intersects": test_item["geometry"],
469-
"datetime": "../..",
470-
}
471-
resp = app_client.post("/search", json=params)
472-
resp_json = resp.json()
473-
assert resp_json["features"][0]["id"] == test_item["id"]
466+
for dt in ["/", "../", "/..", "../.."]:
467+
resp = app_client.post("/search", json={"datetime": dt})
468+
assert resp.status_code == 400
474469

475470

476471
def test_item_search_sort_post(app_client, load_test_data):

0 commit comments

Comments
 (0)