File: test_issue_139_no_duration.py

package info (click to toggle)
python-recurring-ical-events 3.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: python: 2,896; sh: 15; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
"""We want to check that the DURATION is removed.

See https://github.com/niccokunzmann/python-recurring-ical-events/issues/139
"""


def test_no_duration_in_event(calendars):
    """Check that there is no DURATION in the event."""
    for event in calendars.duration.all():
        assert "DURATION" not in event
        assert "DTEND" in event