| 1 | """ |
| 2 | These tests are for issue 36 |
| 3 | https://github.com/niccokunzmann/python-recurring-ical-events/issues/36 |
| 4 | """ |
| 5 | |
| 6 | |
| 7 | def test_datetime_replaced_by_datetime(calendars): |
| 8 | events = calendars.issue_36_recurrence_ID_format.at("20200917") |
| 9 | assert len(events) == 1 |
| 10 | assert events[0].get("SUMMARY") == "Modified event" |
| 11 | |
| 12 | |
| 13 | def test_date_replaced_by_date(calendars): |
| 14 | events = calendars.issue_36_recurrence_ID_format.at("20200914") |
| 15 | assert len(events) == 1 |
| 16 | assert events[0].get("SUMMARY") == "Modified event 1" |
| 17 | |
| 18 | |
| 19 | def test_date_replaced_by_datetime(calendars): |
| 20 | events = calendars.issue_36_recurrence_ID_format.at("20200921") |
| 21 | assert len(events) == 1 |
| 22 | assert events[0].get("SUMMARY") == "Modified event 2" |