-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove extra CATEGORIES in feed and add test for multiple categories. C…
…loses #63.
- Loading branch information
1 parent
3b129d2
commit ddffb5d
Showing
2 changed files
with
5 additions
and
2 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 |
---|---|---|
|
@@ -97,6 97,7 @@ def items(self): | |
"email": "[email protected]", | ||
"role": "CHAIR", | ||
}, | ||
"categories": ['Cat1', 'Cat2'], | ||
"alarms": [ | ||
{ | ||
"trigger": timedelta(minutes=-30), | ||
|
@@ -376,6 377,9 @@ def test_items(self): | |
calendar.subcomponents[1]["ORGANIZER"].to_ical(), | ||
b"MAILTO:[email protected]", | ||
) | ||
self.assertEqual( | ||
calendar.subcomponents[1]["CATEGORIES"].to_ical(), b"Cat1,Cat2" | ||
) | ||
self.assertIn( | ||
b"BEGIN:VALARM\r\nACTION:DISPLAY\r\nDESCRIPTION:Alarm2a\r\nTRIGGER:-PT30M\r\nEND:VALARM\r\n", | ||
[comp.to_ical() for comp in calendar.subcomponents[1].subcomponents], | ||
|
@@ -407,7 411,7 @@ def test_items(self): | |
calendar.subcomponents[2]["PRIORITY"].to_ical(), b"1" | ||
) | ||
self.assertEqual( | ||
calendar.subcomponents[2]["CATEGORIES"][0].to_ical(), b"CLEANING" | ||
calendar.subcomponents[2]["CATEGORIES"].to_ical(), b"CLEANING" | ||
) | ||
self.assertEqual( | ||
calendar.subcomponents[2]["PERCENT-COMPLETE"].to_ical(), b"89" | ||
|