Skip to content

Commit

Permalink
Merge pull request #1315 from pimutils/reproduce/785
Browse files Browse the repository at this point in the history
trying to reproduce not showing descriptions with parameters
  • Loading branch information
geier authored Oct 31, 2023
2 parents 4d4fb9b + 009cd7c commit 2f93ccd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/event_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
)
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 2f93ccd

Please sign in to comment.