diff --git a/inkycal/tests/ical_parser_tests.py b/inkycal/tests/ical_parser_tests.py new file mode 100644 index 0000000..161818a --- /dev/null +++ b/inkycal/tests/ical_parser_tests.py @@ -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() \ No newline at end of file