mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
add spaces between pytest.mark.parametrize parameters
This commit is contained in:
parent
d7a08cbd15
commit
cb3f6c09e7
|
@ -203,7 +203,7 @@ class TestImageFont:
|
|||
assert_image_similar(im, target_img, self.metrics["textsize"])
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"text,mode,font,size,length_basic_index,length_raqm",
|
||||
"text, mode, font, size, length_basic_index, length_raqm",
|
||||
(
|
||||
# basic test
|
||||
("text", "L", "FreeMono.ttf", 15, 0, 36),
|
||||
|
@ -789,7 +789,7 @@ class TestImageFont:
|
|||
self._check_text(font, "Tests/images/variation_tiny_axes.png", 32.5)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"anchor,left,left_old,top",
|
||||
"anchor, left, left_old, top",
|
||||
(
|
||||
# test horizontal anchors
|
||||
("ls", 0, 0, -36),
|
||||
|
@ -835,7 +835,7 @@ class TestImageFont:
|
|||
assert_image_similar(im, expected, 7)
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"anchor,align",
|
||||
"anchor, align",
|
||||
(
|
||||
# test horizontal anchors
|
||||
("lm", "left"),
|
||||
|
|
|
@ -215,7 +215,7 @@ def test_language():
|
|||
|
||||
@pytest.mark.parametrize("mode", ("L", "1"))
|
||||
@pytest.mark.parametrize(
|
||||
"text,direction,expected",
|
||||
"text, direction, expected",
|
||||
(
|
||||
("سلطنة عمان Oman", None, 173.703125),
|
||||
("سلطنة عمان Oman", "ltr", 173.703125),
|
||||
|
@ -327,7 +327,7 @@ combine_tests = (
|
|||
|
||||
# this tests various combining characters for anchor alignment and clipping
|
||||
@pytest.mark.parametrize(
|
||||
"name,text,anchor,dir,epsilon", combine_tests, ids=[r[0] for r in combine_tests]
|
||||
"name, text, anchor, dir, epsilon", combine_tests, ids=[r[0] for r in combine_tests]
|
||||
)
|
||||
def test_combine(name, text, dir, anchor, epsilon):
|
||||
if (
|
||||
|
@ -356,7 +356,7 @@ def test_combine(name, text, dir, anchor, epsilon):
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"anchor,align",
|
||||
"anchor, align",
|
||||
(
|
||||
("lm", "left"), # pass with getsize
|
||||
("lm", "center"), # fail at 2.12
|
||||
|
|
Loading…
Reference in New Issue
Block a user