1
0
mirror of https://github.com/b4tman/sync_ics2gcal synced 2025-02-01 20:28:30 +00:00
This commit is contained in:
Dmitry Belyaev 2018-04-15 23:41:50 +03:00
parent 648e418177
commit dddde78b8a
Signed by: b4tman
GPG Key ID: 014E87EC54B77673
2 changed files with 79 additions and 75 deletions

View File

@ -70,6 +70,7 @@ END:VEVENT
END:VCALENDAR END:VCALENDAR
""" """
class TestCalendarConverter(unittest.TestCase): class TestCalendarConverter(unittest.TestCase):
def test_empty_calendar(self): def test_empty_calendar(self):
converter = CalendarConverter() converter = CalendarConverter()
@ -150,5 +151,6 @@ class TestCalendarConverter(unittest.TestCase):
self.assertEqual(event['created'], '2018-03-20T07:11:55.000001Z') self.assertEqual(event['created'], '2018-03-20T07:11:55.000001Z')
self.assertEqual(event['updated'], '2018-03-26T12:02:35.000001Z') self.assertEqual(event['updated'], '2018-03-26T12:02:35.000001Z')
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()

View File

@ -1,5 +1,6 @@
import unittest import unittest
class TestImports(unittest.TestCase): class TestImports(unittest.TestCase):
def test_imports(self): def test_imports(self):
from gcal_sync import ( from gcal_sync import (
@ -10,5 +11,6 @@ class TestImports(unittest.TestCase):
CalendarSync CalendarSync
) )
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()