From fcef56958ee026ac5a2e6ee6546dc03a67cba208 Mon Sep 17 00:00:00 2001 From: Yushin Washio Date: Tue, 28 Nov 2023 19:31:50 +0100 Subject: [PATCH] Add test for stamped initialization issue (#347) --- tests/test_vcal.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/test_vcal.py b/tests/test_vcal.py index ab2d7085..a0ba5d56 100644 --- a/tests/test_vcal.py +++ b/tests/test_vcal.py @@ -149,7 +149,17 @@ def test_vcal_fixups(self): CATEGORIES:oslo END:VEVENT END:VCALENDAR -""" +""", + ## Next one contains a DTSTAMP before BEGIN:VEVENT + ## Doesn’t make sense, but valid, and more importantly, + ## not failing during the `fix` call. + """DTSTAMP:20210205T101751Z +BEGIN:VEVENT +UID:20200516T060000Z-123401@example.com +SUMMARY:Do the needful +DTSTART:20210517T060000Z +END:VEVENT +""", ] broken_ical = [ ## This first one contains duplicated DTSTAMP in the event data