feat: added product filter tests

This commit is contained in:
Pablo Moreno
2024-11-28 01:07:29 +01:00
parent f70aeac71f
commit 3ea4bc6b3a
2 changed files with 32 additions and 1 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ class CreateProductsMixin:
description="Descripción",
price=Decimal("10.00"),
) -> Product:
tax = Tax.objects.create(
tax, created = Tax.objects.get_or_create(
code="IVA",
value=21,
)
@@ -27,5 +27,6 @@ class CreateProductsMixin:
product=product,
date=now(),
tax=tax,
current=True,
)
return product