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 Dec 31, 2023
1 parent f5f2782 commit 25d6958
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 25d6958

Please sign in to comment.