Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more start/end datetime tests #151

Merged
merged 3 commits into from
May 21, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading