Added unittest
This commit is contained in:
parent
ba63df178f
commit
7326e0e2ae
15
inkycal/tests/ical_parser_tests.py
Normal file
15
inkycal/tests/ical_parser_tests.py
Normal file
@ -0,0 +1,15 @@
|
||||
import unittest
|
||||
from inkycal.modules.ical_parser import icalendar
|
||||
import arrow
|
||||
|
||||
|
||||
class ical_parser_tests(unittest.TestCase):
|
||||
|
||||
def test_show_events(self):
|
||||
a = icalendar()
|
||||
a.load_url('https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics')
|
||||
a.get_events(arrow.now(), arrow.now().shift(weeks=30))
|
||||
a.show_events()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
Loading…
Reference in New Issue
Block a user