fix: set lowercase for verbose name strings

This commit is contained in:
Pablo Moreno
2024-06-02 21:47:49 +02:00
parent 22e9f4355f
commit 44ccd21543
4 changed files with 634 additions and 78 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class TestProductsAPI(APITestCase, TestUserAuthenticationMixin):
self.tag = Tag.objects.create(name="Alimentos")
def get_random_sku(self):
return ''.join(random.choices(string.ascii_uppercase, k=16))
return "".join(random.choices(string.ascii_uppercase, k=16))
def create_products(self):
self.product = Product.objects.create(
+3 -3
View File
@@ -14,17 +14,17 @@ class ShopModelsTest(TestCase):
def create_products(self):
self.potatoes = Product.objects.create(
sku='0000001',
sku="0000001",
name="Patatas",
stock=Decimal("100.00"),
)
self.gasoline = Product.objects.create(
sku='0000002',
sku="0000002",
name="Gasolina",
stock=Decimal("800.00"),
)
self.usb_c = Product.objects.create(
sku='0000003',
sku="0000003",
name="Cable USB-C",
stock=Decimal("5.00"),
)