Skip to content

Commit

Permalink
add more start/end datetime tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed May 21, 2024
1 parent b18cc74 commit 7f0049d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/api/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f0049d

Please sign in to comment.