From 6a9fc0ae8e678f93a6203594d4c6691c8ea2a496 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Fri, 24 Nov 2023 17:50:58 +0200 Subject: [PATCH] Add test for get_event attribute error --- tests/core/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/core/test_utils.py b/tests/core/test_utils.py index 7300541ee..dce29135b 100644 --- a/tests/core/test_utils.py +++ b/tests/core/test_utils.py @@ -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)