File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments