mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Parametrized test
This commit is contained in:
parent
660894cd36
commit
696aa7972d
|
@ -90,9 +90,10 @@ class TestFileJpeg:
|
|||
]
|
||||
assert k > 0.9
|
||||
|
||||
def test_dpi(self):
|
||||
for test_image_path in [TEST_FILE, "Tests/images/pil_sample_cmyk.jpg"]:
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"test_image_path", [TEST_FILE, "Tests/images/pil_sample_cmyk.jpg"],
|
||||
)
|
||||
def test_dpi(self, test_image_path):
|
||||
def test(xdpi, ydpi=None):
|
||||
with Image.open(test_image_path) as im:
|
||||
im = self.roundtrip(im, dpi=(xdpi, ydpi or xdpi))
|
||||
|
|
Loading…
Reference in New Issue
Block a user