File: test_issue_36_recurrence_id_format.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 (22 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
These tests are for issue 36
https://github.com/niccokunzmann/python-recurring-ical-events/issues/36
"""


def test_datetime_replaced_by_datetime(calendars):
    events = calendars.issue_36_recurrence_ID_format.at("20200917")
    assert len(events) == 1
    assert events[0].get("SUMMARY") == "Modified event"


def test_date_replaced_by_date(calendars):
    events = calendars.issue_36_recurrence_ID_format.at("20200914")
    assert len(events) == 1
    assert events[0].get("SUMMARY") == "Modified event 1"


def test_date_replaced_by_datetime(calendars):
    events = calendars.issue_36_recurrence_ID_format.at("20200921")
    assert len(events) == 1
    assert events[0].get("SUMMARY") == "Modified event 2"