File: test_issue_173_only_modification_included.py

package info (click to toggle)
python-recurring-ical-events 3.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: python: 2,896; sh: 15; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Calendars do not only contain events with an RRULE but they can contain recurrences without
any RRULE in them.

I assume this can happen for example when one accepts a calendar invitation of
one instance of an recurring event.

See https://github.com/niccokunzmann/python-recurring-ical-events/issues/173
"""


def test_event_can_be_found_in_the_right_time(calendars):
    """The event reported should be present in the calculations."""
    events = calendars.issue_173_only_modifications_error.at("20240108")
    assert len(events) >= 1
    uid = "_6krj2dhl74q34b9j60sj4b9k8h238b9p6gok2ba68gojgchl6cpj0h1o88_R20231009T130000@google.com"
    assert any(event["UID"] == uid for event in events)