Skip to content

Commit

Permalink
Fix get_event coverage issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amakarudze committed Nov 24, 2023
1 parent 29a06bf commit 9f9efa1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/core/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,13 @@ def test_get_event_not_past(future_event):
def test_get_event_not_past_user_authenticated(future_event):
result = get_event("bonn", True, False)
assert result == future_event


def test_get_event_multiple_events(old_event, future_event):
result = get_event("bonn", True, False)
assert result == future_event


def test_get_event_none_exists():
result = get_event("bonn", True, False)
assert result is None

0 comments on commit 9f9efa1

Please sign in to comment.