From 7f0049d9b953a38625bfafb1f363f7d7fbe2374b Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Tue, 21 May 2024 11:29:52 +0200 Subject: [PATCH] add more start/end datetime tests --- tests/api/test_search.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/api/test_search.py b/tests/api/test_search.py index 15fd19c..95899ab 100644 --- a/tests/api/test_search.py +++ b/tests/api/test_search.py @@ -77,6 +77,14 @@ def test_temporal_search_two_tailed(): assert search.start_date == utcnow assert search.end_date is None + search = Search(collections=["collection1"], datetime=f"../{utcnow_str}") + assert search.start_date is None + assert search.end_date == utcnow + + search = Search(collections=["collection1"], datetime=f"/{utcnow_str}") + assert search.start_date is None + assert search.end_date == utcnow + def test_temporal_search_open(): # Test open date range