Fixed some tests, added a few more
This commit is contained in:
		
							
								
								
									
										22
									
								
								inkycal/tests/inkycal_rss_test.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								inkycal/tests/inkycal_rss_test.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| import unittest | ||||
| from inkycal.modules import RSS | ||||
|  | ||||
| rss = RSS( | ||||
|   #size | ||||
|   (400,400), | ||||
|  | ||||
|   # config | ||||
|   { | ||||
|     'rss_urls': ['http://feeds.bbci.co.uk/news/world/rss.xml#'] | ||||
|   } | ||||
|  | ||||
|   ) | ||||
|  | ||||
| class inkycal_rss_test(unittest.TestCase): | ||||
|   def test_generate_image(self): | ||||
|     print('testing image generation') | ||||
|     rss.generate_image() | ||||
|  | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|   unittest.main() | ||||
		Reference in New Issue
	
	Block a user