Skip to content

Commit

Permalink
Add test for get_event attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Nov 24, 2023
1 parent 19cf1d0 commit 6a9fc0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/core/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,8 @@ def test_get_event_multiple_events(old_event, future_event):
def test_get_event_none_exists():
result = get_event("bonn", True, False)
assert result is None


def test_get_event_no_date(old_event_no_date):
result = get_event("bonn", False, False)
assert result == ("bonn", True)

0 comments on commit 6a9fc0a

Please sign in to comment.