Fix additional tests

This commit is contained in:
2026-05-12 11:04:04 +02:00
parent d9fe99963a
commit 94a7fe5d4d
2 changed files with 10 additions and 9 deletions
+4 -2
View File
@@ -22,11 +22,13 @@ class FormatDurationTest(TestCase):
g = Game(name="The Test Game")
g.save()
p = Purchase(
game=g, date_purchased=datetime(2022, 9, 26, 14, 58, tzinfo=ZONEINFO)
date_purchased=datetime(2022, 9, 26, 14, 58, tzinfo=ZONEINFO)
)
p.save()
p.games.add(g)
p.save()
s = Session(
purchase=p,
game=g,
timestamp_start=datetime(2022, 9, 26, 14, 58, tzinfo=ZONEINFO),
timestamp_end=datetime(2022, 9, 26, 17, 38, tzinfo=ZONEINFO),
)