Merge branch 'bugfix-333' into bugfix-335

pull/339/head
Tobias Brox 2021-11-17 23:55:18 +01:00
commit 19883374ab
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -19,6 +19,9 @@ except:
class TestTimezoned(unittest.TestCase):
def test_create_from_ical_zoneinfo(self):
if zoneinfo is None:
self.skipTest("zoneinfo library not found for this python version")
directory = os.path.dirname(__file__)
with open(os.path.join(directory, 'timezoned.ics'), 'rb') as fp:
data = fp.read()
@ -172,6 +175,9 @@ class TestTimezoned(unittest.TestCase):
self.assertTrue("CREATED;VALUE=DATE-TIME:20101010T081010Z" in test_out)
def test_create_to_ical_zoneinfo(self):
if zoneinfo is None:
self.skipTest("zoneinfo library not found for this python version")
cal = icalendar.Calendar()
cal.add('prodid', "-//Plone.org//NONSGML plone.app.event//EN")