-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show partstat status and read email addresses
- Loading branch information
Showing
6 changed files
with
62 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
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
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 |
---|---|---|
|
@@ -673,3 +673,28 @@ 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_partstat(): | ||
FORMAT_CALENDAR = ('{calendar-color}{partstat-symbol}{status-symbol}{start-end-time-style} ({calendar}) ' | ||
'{title} [{location}]{repeat-symbol}') | ||
|
||
event = Event.fromString(_get_text('event_dt_partstat'), address='[email protected]', **EVENT_KWARGS) | ||
assert event.partstat == 'ACCEPTED' | ||
assert event.format(FORMAT_CALENDAR, dt.date(2014, 4, 9)) == ' ✔09:30-10:30 (foobar) An Event []\x1b[0m' | ||
|
||
event = Event.fromString(_get_text('event_dt_partstat'), address='[email protected]', **EVENT_KWARGS) | ||
assert event.partstat == 'DECLINED' | ||
assert event.format(FORMAT_CALENDAR, dt.date(2014, 4, 9)) == ' ❌09:30-10:30 (foobar) An Event []\x1b[0m' | ||
|
||
event = Event.fromString(_get_text('event_dt_partstat'), address='[email protected]', **EVENT_KWARGS) | ||
assert event.partstat == 'ACCEPTED' | ||
assert event.format(FORMAT_CALENDAR, dt.date(2014, 4, 9)) == ' ✔09:30-10:30 (foobar) An Event []\x1b[0m' | ||
|
||
@pytest.mark.xfail | ||
def test_partstat_deligated(): | ||
event = Event.fromString(_get_text('event_dt_partstat'), address='[email protected]', **EVENT_KWARGS) | ||
assert event.partstat == 'ACCEPTED' | ||
|
||
event = Event.fromString(_get_text('event_dt_partstat'), address='[email protected]', **EVENT_KWARGS) | ||
assert event.partstat == 'ACCEPTED' |