2020-06-10 15:12:44 +02:00
|
|
|
import unittest
|
|
|
|
from inkycal.modules import Calendar
|
|
|
|
|
|
|
|
calendar = Calendar(
|
|
|
|
#size
|
|
|
|
(400,400),
|
|
|
|
|
2020-06-19 20:16:27 +02:00
|
|
|
# common config
|
2020-06-10 15:12:44 +02:00
|
|
|
{
|
2020-06-19 20:16:27 +02:00
|
|
|
'language': 'en',
|
|
|
|
'units': 'metric',
|
|
|
|
'hours': 24,
|
|
|
|
# module-specific config
|
2020-06-10 15:12:44 +02:00
|
|
|
'week_starts_on': 'Monday',
|
|
|
|
'ical_urls': ['https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics']
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
class inkycal_calendar_test(unittest.TestCase):
|
|
|
|
def test_generate_image(self):
|
|
|
|
print('testing image generation')
|
|
|
|
calendar.generate_image()
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|