Skip to content

Commit f15493d

Browse files
committed
datetime non interval
1 parent 726b4f5 commit f15493d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

stac_fastapi/elasticsearch/tests/api/test_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ def test_search_invalid_date(load_test_data, app_client, es_transactions):
269269
)
270270

271271

272-
# @pytest.mark.skip(reason="assert 0 == 1")
273272
def test_search_point_intersects(load_test_data, app_client, es_transactions):
274273
item = load_test_data("test_item.json")
275274
es_transactions.create_item(item, request=MockStarletteRequest)
@@ -283,19 +282,21 @@ def test_search_point_intersects(load_test_data, app_client, es_transactions):
283282
"collections": [item["collection"]],
284283
}
285284
resp = app_client.post("/search", json=params)
286-
es_transactions.delete_item(
287-
item["id"], item["collection"], request=MockStarletteRequest
288-
)
289285

290286
assert resp.status_code == 200
291287
resp_json = resp.json()
292288
assert len(resp_json["features"]) == 1
293289

290+
es_transactions.delete_item(
291+
item["id"], item["collection"], request=MockStarletteRequest
292+
)
294293

295-
@pytest.mark.skip(reason="unknown")
294+
295+
# @pytest.mark.skip(reason="unknown")
296296
def test_datetime_non_interval(load_test_data, app_client, es_transactions):
297297
item = load_test_data("test_item.json")
298298
es_transactions.create_item(item, request=MockStarletteRequest)
299+
time.sleep(2)
299300
alternate_formats = [
300301
"2020-02-12T12:30:22+00:00",
301302
"2020-02-12T12:30:22.00Z",

0 commit comments

Comments
 (0)