Debian Codegraph @

recurring_ical_events/test/test_issue_173_only_modification_included.py

raw symbols SCIP
1 """Calendars do not only contain events with an RRULE but they can contain recurrences without
2 any RRULE in them.
3
4 I assume this can happen for example when one accepts a calendar invitation of
5 one instance of an recurring event.
6
7 See https://github.com/niccokunzmann/python-recurring-ical-events/issues/173
8 """
9
10
11 def test_event_can_be_found_in_the_right_time(calendars):
12 """The event reported should be present in the calculations."""
13 events = calendars.issue_173_only_modifications_error.at("20240108")
14 assert len(events) >= 1
15 uid = "_6krj2dhl74q34b9j60sj4b9k8h238b9p6gok2ba68gojgchl6cpj0h1o88_R20231009T130000@google.com"
16 assert any(event["UID"] == uid for event in events)