Defining image extensions only in one place
This commit is contained in:
@@ -27,7 +27,7 @@ class TestImage:
|
||||
|
||||
def test_supported_extensions(self):
|
||||
"""Test that supported extensions are correctly defined."""
|
||||
expected_extensions = [".jpg", ".jpeg", ".png", ".tif", ".tiff", ".bmp"]
|
||||
expected_extensions = Image.SUPPORTED_EXTENSIONS
|
||||
assert Image.SUPPORTED_EXTENSIONS == expected_extensions
|
||||
|
||||
def test_image_properties(self, tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user