feat: LetterFeed logo for feed

This commit is contained in:
Leon
2025-07-19 19:12:15 +02:00
parent 830fcc5757
commit 5abb379af0
4 changed files with 7 additions and 0 deletions

View File

@@ -182,6 +182,9 @@ def test_get_newsletter_feed(client: TestClient):
root = ET.fromstring(response.text)
# Atom feed uses a namespace, so we need to include it in our tag searches
ns = {"atom": "http://www.w3.org/2005/Atom"}
logo = root.find("atom:logo", ns)
assert logo is not None
assert logo.text == "http://localhost:8000/logo.png"
entry_titles = [
entry.find("atom:title", ns).text for entry in root.findall("atom:entry", ns)
]