Make tests more robust, use django-pytest

This commit is contained in:
2026-05-12 11:56:28 +02:00
parent 0866eb25e9
commit 37e3c69abc
10 changed files with 57 additions and 107 deletions
+3 -3
View File
@@ -229,7 +229,7 @@ def Icon(
def LinkedPurchase(purchase: Purchase) -> SafeText:
link = reverse("view_purchase", args=[int(purchase.id)])
link = reverse("games:view_purchase", args=[int(purchase.id)])
link_content = ""
popover_content = ""
game_count = purchase.games.count()
@@ -321,12 +321,12 @@ def _resolve_name_with_icon(
final_emulated = session.emulated
if linkify:
create_link = True
link = reverse("view_game", args=[int(game.pk)])
link = reverse("games:view_game", args=[int(game.pk)])
elif game is not None:
platform = game.platform
if linkify:
create_link = True
link = reverse("view_game", args=[int(game.pk)])
link = reverse("games:view_game", args=[int(game.pk)])
_name = name or (game.name if game else "")