provide author information for the feed and entries
Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
@@ -26,8 +26,17 @@ def test_rss_type_is_200(client):
|
||||
print(response.text)
|
||||
|
||||
|
||||
def test_feed_generator(app):
|
||||
def test_feed_generator_atom(app):
|
||||
"""Test the root feed generator."""
|
||||
with app.test_request_context():
|
||||
content = serve_feed('atom')
|
||||
assert b'<id>https://example.com/</id>' in content
|
||||
assert b'<email>admin@example.com</email>' in content
|
||||
assert b'<name>Test Name</name>' in content
|
||||
|
||||
|
||||
def test_feed_generator_rss(app):
|
||||
"""Test the root feed generator."""
|
||||
with app.test_request_context():
|
||||
content = serve_feed('rss')
|
||||
assert b'<author>admin@example.com (Test Name)</author>' in content
|
||||
|
||||
Reference in New Issue
Block a user