populate command call once for all tests

This commit is contained in:
maréchal
2023-04-28 11:36:02 +02:00
parent 66fcb76cb5
commit af4c9cbdd4
14 changed files with 77 additions and 117 deletions

View File

@ -41,7 +41,6 @@ from eboutic.models import Basket
class EbouticTest(TestCase):
@classmethod
def setUpTestData(cls):
call_command("populate")
cls.barbar = Product.objects.filter(code="BARB").first()
cls.refill = Product.objects.filter(code="15REFILL").first()
cls.cotis = Product.objects.filter(code="1SCOTIZ").first()