Skip to content

Commit

Permalink
trying to reproduce not showing descriptions with parameters
Browse files Browse the repository at this point in the history
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
  • Loading branch information
geier committed Oct 31, 2023
1 parent 4d4fb9b commit d809711
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/event_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,3 +678,9 @@ 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.'
8 changes: 8 additions & 0 deletions tests/ics/event_dt_description.ics
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d809711

Please sign in to comment.