Fixed some tests, added a few more

This commit is contained in:
Ace
2020-06-10 15:12:44 +02:00
parent 03a184775c
commit 632214e0f0
4 changed files with 59 additions and 19 deletions

View 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()