feat: ruff'ed

This commit is contained in:
2025-05-02 08:38:57 +02:00
parent 32b36b81b3
commit 48b53d851a
62 changed files with 2019 additions and 3655 deletions
+3 -3
View File
@@ -13,11 +13,11 @@ class TestProductImages(TestCase, CreateProductsMixin):
self.product = self.create_product()
def create_image_file(self, size=(768, 768)):
image = Image.new("RGB", size, "#ACACAC")
image = Image.new('RGB', size, '#ACACAC')
buffer = BytesIO()
image.save(fp=buffer, format="WEBP")
file = ContentFile(buffer.getvalue(), name=f"{self.product.slug}.webp")
image.save(fp=buffer, format='WEBP')
file = ContentFile(buffer.getvalue(), name=f'{self.product.slug}.webp')
return file
def test_product_image_creation(self):