Debian Codegraph @

recurring_ical_events/test/test_issue_28_timezone_with_z.py

raw symbols SCIP
1 """These tests are for Issue 28
2 https://github.com/niccokunzmann/python-recurring-ical-events/issues/28
3
4 """
5
6
7 def test_expected_amount_of_events(calendars):
8 events = calendars.issue_28_rrule_with_UTC_endinginZ.between(
9 (2020, 5, 25),
10 (2020, 9, 5),
11 )
12 assert len(events) == 15, (
13 "Microsoft Outlook online imports this calendar and shows that there are 15 events."
14 )
15
16
17 def test_modification_of_event(calendars):
18 events = calendars.issue_28_rrule_with_UTC_endinginZ.between(
19 (2020, 9, 3),
20 (2020, 9, 5),
21 )
22 assert len(events) == 1, "Microsoft Outlook online shows one event moved."