28 lines
		
	
	
		
			553 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			553 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import unittest
 | 
						|
from inkycal.modules import Agenda
 | 
						|
 | 
						|
agenda = Agenda(
 | 
						|
  #size
 | 
						|
  (400,400),
 | 
						|
 | 
						|
  # common config
 | 
						|
  {
 | 
						|
  'language': 'en',
 | 
						|
  'units': 'metric',
 | 
						|
  'hours': 24,
 | 
						|
  # module-specific config
 | 
						|
  '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_agenda_test(unittest.TestCase):
 | 
						|
  def test_generate_image(self):
 | 
						|
    print('testing image generation')
 | 
						|
    agenda.generate_image()
 | 
						|
 | 
						|
 | 
						|
if __name__ == '__main__':
 | 
						|
  unittest.main()
 |