feat: added sku and resetted migrations

This commit is contained in:
2024-05-21 19:36:28 +02:00
parent ff1a7e2c68
commit ea9830a976
15 changed files with 355 additions and 572 deletions
+3
View File
@@ -14,14 +14,17 @@ class ShopModelsTest(TestCase):
def create_products(self):
self.potatoes = Product.objects.create(
sku='0000001',
name="Patatas",
stock=Decimal("100.00"),
)
self.gasoline = Product.objects.create(
sku='0000002',
name="Gasolina",
stock=Decimal("800.00"),
)
self.usb_c = Product.objects.create(
sku='0000003',
name="Cable USB-C",
stock=Decimal("5.00"),
)