genrss/tests/support.py

11 lines
275 B
Python
Raw Normal View History

2019-07-23 22:59:53 +03:00
from genrss import GenRSS
def create_rss(**kwargs):
return GenRSS(title='SmartFridge', site_url='https://smartfridge.me/',
feed_url='https://smartfridge.me/rss.xml', **kwargs)
def create_item(feed, **kwargs):
feed.item(title='Recipe', **kwargs)