Skip to content

Commit 7477504

Browse files
committed
Fix RECURRENCE-ID property name in expanded exception check
The icalendar library stores the property as "RECURRENCE-ID" (with hyphen), not "RECURRENCE_ID" (with underscore). Using the underscore form causes component.get() to return None, making the search.recurrences.expanded.exception check always fail.
1 parent d1ef07f commit 7477504

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/caldav_server_tester/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ def _run_check(self):
12891289
len(exception) == 1
12901290
and exception[0].component["dtstart"] == datetime(2000, 2, 13, 12, 0, 0, tzinfo=utc)
12911291
and exception[0].component["summary"] == "February recurrence with different summary"
1292-
and getattr(exception[0].component.get("RECURRENCE_ID"), "dt", None)
1292+
and getattr(exception[0].component.get("RECURRENCE-ID"), "dt", None)
12931293
== datetime(2000, 2, 13, 12, tzinfo=utc),
12941294
)
12951295

0 commit comments

Comments
 (0)