Skip to content

Commit

Permalink
reproduce error from #121
Browse files Browse the repository at this point in the history
  • Loading branch information
niccokunzmann committed Dec 23, 2023
1 parent bb22feb commit 3dfe3ba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/calendars/date-exclude.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PYVOBJECT//NONSGML Version 1//EN
BEGIN:VEVENT
UID:d9b8ba07-1d4a-40ec-bdb5-c4f538d261af
DTSTART:20231215T060000Z
DTEND:20231215T070000Z
CATEGORIES:Kategorie
CLASS:PUBLIC
CREATED:20231215T070936Z
DESCRIPTION:La concha de su madre
DTSTAMP:20231215T154916Z
EXDATE;VALUE=DATE:20231216
LAST-MODIFIED:20231215T154916Z
RRULE:FREQ=DAILY;UNTIL=20231218T023000Z;FREQ=DAILY
SEQUENCE:35
SUMMARY:Tag ausgeschlossen
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
7 changes: 7 additions & 0 deletions test/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,10 @@ def test_german_holidays(calendars):
holidays = calendars.Germany_Holidays.at(2020)
assert len(holidays) == 17


def test_exdate_date(calendars):
"""The EXDATE can be a date, too.
See https://github.com/niccokunzmann/python-recurring-ical-events/pull/121
"""
assert calendars.date_exclude.at("20231216") == []

0 comments on commit 3dfe3ba

Please sign in to comment.