From 009cd7c3ac71b7e886911577f0afcf98a61d8d3f Mon Sep 17 00:00:00 2001 From: Christian Geier Date: Tue, 31 Oct 2023 16:02:49 +0100 Subject: [PATCH] trying to reproduce not showing descriptions with parameters This seems to have been an issue in 2018, not sure if we fixed this or it was fixed in icalendar, but doesn't seem to be a problem anymore. fix #785 --- tests/event_test.py | 8 ++++++++ tests/ics/event_dt_description.ics | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/ics/event_dt_description.ics diff --git a/tests/event_test.py b/tests/event_test.py index 585e25a50..6dad949ca 100644 --- a/tests/event_test.py +++ b/tests/event_test.py @@ -678,3 +678,11 @@ def test_timezone_creation_with_arbitrary_dates(freeze_ts, event_time): assert len(vtimezone) > 14 assert 'BEGIN:STANDARD' in vtimezone assert 'BEGIN:DAYLIGHT' in vtimezone + + +def test_parameters_description(): + """test if we support DESCRIPTION properties with parameters""" + event = Event.fromString(_get_text('event_dt_description'), **EVENT_KWARGS) + assert event.description == ( + 'Hey, \n\nJust setting aside some dedicated time to talk about redacted.' + ) diff --git a/tests/ics/event_dt_description.ics b/tests/ics/event_dt_description.ics new file mode 100644 index 000000000..69007724d --- /dev/null +++ b/tests/ics/event_dt_description.ics @@ -0,0 +1,8 @@ +BEGIN:VEVENT +SUMMARY:An Event +DESCRIPTION;LANG=en_US:Hey, \n\nJust setting aside some dedicated time to talk about redacted. +DTSTART:20230409T093000 +DTEND:20230409T103000 +DTSTAMP:20230401T234817Z +UID:floating_with_description_and_parameter +END:VEVENT