feat: ruff'ed
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user