Skip to content

Commit b9ca6aa

Browse files
committed
add tests back
1 parent 34bd0c6 commit b9ca6aa

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/routes/test_item.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def test_item(app):
1616
assert "text/html" in response.headers["content-type"]
1717
assert "Collection Item: 1" in response.text
1818

19-
# TODO Fix Table.query response
20-
# # not found
21-
# response = app.get("/collections/public.landsat_wrs/items/50000")
22-
# assert response.status_code == 404
19+
# not found
20+
response = app.get("/collections/public.landsat_wrs/items/50000")
21+
assert response.status_code == 404

tests/routes/test_items.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,15 @@ def test_items_datetime(app):
353353
body = response.json()
354354
assert body["detail"] == "Invalid Datetime Column: the_datetime."
355355

356-
# TODO Fix table.Query
357356
# no items for 2004-10-10T10:23:54
358-
# response = app.get("/collections/public.my_data/items?datetime=2004-10-10T10:23:54Z")
359-
# assert response.status_code == 200
360-
# assert response.headers["content-type"] == "application/geo+json"
361-
# body = response.json()
362-
# assert body["numberMatched"] == 0
363-
# assert body["numberReturned"] == 0
357+
response = app.get(
358+
"/collections/public.my_data/items?datetime=2004-10-10T10:23:54Z"
359+
)
360+
assert response.status_code == 200
361+
assert response.headers["content-type"] == "application/geo+json"
362+
body = response.json()
363+
assert body["numberMatched"] == 0
364+
assert body["numberReturned"] == 0
364365

365366
# Closed Interval
366367
response = app.get(

0 commit comments

Comments
 (0)