add 2nd testcase

This commit is contained in:
Peter Bieringer
2026-06-07 08:24:27 +02:00
parent 20c0eaa236
commit 5914deff28
2 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Paris
X-LIC-LOCATION:Europe/Paris
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20130902T150157Z
LAST-MODIFIED:20130902T150158Z
DTSTAMP:20130902T150158Z
UID:event_mixed_datetime_and_date_exdate
SUMMARY:Event
DTSTART:20130901T180000
DTEND:20130901T190000
RRULE:FREQ=DAILY;COUNT=3
EXDATE:20130902T193000Z
END:VEVENT
END:VCALENDAR

View File

@@ -273,12 +273,18 @@ permissions: RrWw""")
event = get_file_content("event_exdate_without_rrule.ics")
self.put("/calendar.ics/event.ics", event)
def test_add_event_with_issue2151(self) -> None:
"""Test event of issue#2151."""
def test_add_event_exdate_no_tz(self) -> None:
"""Test event where EXDATE has no tzinfo."""
self.mkcalendar("/calendar.ics/")
event = get_file_content("event_issue2151.ics")
self.put("/calendar.ics/event_issue2151.ics", event)
def test_add_event_dtstart_no_tz_exdate_tz(self) -> None:
"""Test event where DTSTART has no tzinfo but EXDATE."""
self.mkcalendar("/calendar.ics/")
event = get_file_content("event_mixed_datetime_and_date_exdate.ics")
self.put("/calendar.ics/event_mixed_datetime_and_date_exdate.ics", event)
def test_add_todo(self) -> None:
"""Add a todo."""
self.mkcalendar("/calendar.ics/")