PR review
Django CI/CD / test (push) Successful in 28s
Django CI/CD / build-and-push (push) Successful in 55s

This commit was merged in pull request #94.
This commit is contained in:
2026-05-12 14:56:59 +02:00
parent 4ba3ed555f
commit 5003b739d3
2 changed files with 13 additions and 20 deletions
+2 -9
View File
@@ -1,6 +1,6 @@
from datetime import date
from django.test import TestCase, override_settings
from django.test import TestCase
from games.models import Game, Platform, Purchase
from games.tasks import convert_prices
@@ -29,14 +29,7 @@ class PurchaseNeedsPriceUpdateTest(TestCase):
purchase.games.add(self.game)
self.assertTrue(purchase.needs_price_update)
with override_settings(
CACHES={
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache"
}
}
):
convert_prices()
convert_prices()
purchase.refresh_from_db()
self.assertFalse(purchase.needs_price_update)