-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add subcomponents to recurring events
- fixes #6
- Loading branch information
1 parent
6277ece
commit 66c7cfc
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
BEGIN:VCALENDAR | ||
BEGIN:VEVENT | ||
SUMMARY:redacted | ||
DTSTART;TZID=Europe/Berlin:20190527T140000 | ||
DTEND;TZID=Europe/Berlin:20190527T163000 | ||
DTSTAMP:20190510T070457Z | ||
UID:00000000-0000-0000-0000-000000000000 | ||
SEQUENCE:4 | ||
ATTENDEE;CN=redacted;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:redacted@example.com | ||
ATTENDEE;CN="redacted";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:redacted@example.com | ||
ATTENDEE;CN="redacted";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:redacted@example.com | ||
ATTENDEE;CN="redacted";PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:redacted@example.com | ||
ATTENDEE;CUTYPE=RESOURCE;PARTSTAT=ACCEPTED;ROLE=NON-PARTICIPANT;RSVP=TRUE:mailto:redacted@example.com | ||
ATTENDEE;CUTYPE=RESOURCE;PARTSTAT=ACCEPTED;ROLE=NON-PARTICIPANT;RSVP=TRUE:mailto:redacted@example.com | ||
CLASS:PUBLIC | ||
DESCRIPTION:redacted | ||
LAST-MODIFIED:20190510T070457Z | ||
LOCATION:redacted@example.com | ||
ORGANIZER;CN=redacted;SENT-BY="mailto:redacted@example.com":mailto:redacted@example.com | ||
STATUS:CONFIRMED | ||
TRANSP:OPAQUE | ||
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY | ||
X-MS-OLK-SENDER:mailto:redacted@example.com | ||
BEGIN:VALARM | ||
ACTION:DISPLAY | ||
DESCRIPTION:Reminder | ||
TRIGGER;RELATED=START:-PT10M | ||
END:VALARM | ||
END:VEVENT | ||
END:VCALENDAR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
""" | ||
This tests that subcomponents are carried over to different events. | ||
""" | ||
|
||
def test_subcomponents_are_compied(calendars): | ||
event = calendars.subcomponents.all()[0] | ||
assert event.subcomponents | ||
|
||
def test_there_are_no_subcomponents(calendars): | ||
event = calendars.Germany.all()[0] | ||
assert not event.subcomponents | ||
|