Refactor GameFeed feed
All checks were successful
Deploy to Server / deploy (push) Successful in 9s

This commit is contained in:
Joakim Hellsén 2026-03-09 06:39:46 +01:00
commit 42dbea7401
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
2 changed files with 2 additions and 2 deletions

View file

@ -447,7 +447,7 @@ class GameFeed(Feed):
description_parts.append( description_parts.append(
SafeText( SafeText(
f"<p>New game has been added to ttvdrops.lovinator.space: {game_name} by {game_owner}\n\n" f"<p>{game_name} has been added to ttvdrops.lovinator.space!\nOwned by {game_owner}.\n\n"
f"<a href='{game_url}'>[Details]</a> " f"<a href='{game_url}'>[Details]</a> "
f"<a href='{twitch_directory_url}'>[Twitch]</a> " f"<a href='{twitch_directory_url}'>[Twitch]</a> "
f"<a href='{rss_feed_url}'>[RSS feed]</a>\n</p>", f"<a href='{rss_feed_url}'>[RSS feed]</a>\n</p>",

View file

@ -65,7 +65,7 @@ class RSSFeedTestCase(TestCase):
assert response.status_code == 200 assert response.status_code == 200
assert response["Content-Type"] == "application/rss+xml; charset=utf-8" assert response["Content-Type"] == "application/rss+xml; charset=utf-8"
content: str = response.content.decode("utf-8") content: str = response.content.decode("utf-8")
assert "Test Game by Test Organization" in content assert "Owned by Test Organization." in content
expected_rss_link: str = reverse( expected_rss_link: str = reverse(
"twitch:game_campaign_feed", "twitch:game_campaign_feed",