provide author information for the feed and entries

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2023-12-30 15:25:46 -06:00
parent b26975421c
commit 575e2ad387
3 changed files with 15 additions and 1 deletions

View File

@@ -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