add spaces between pytest.mark.parametrize parameters

This commit is contained in:
nulano 2020-10-12 16:08:16 +01:00
parent d7a08cbd15
commit cb3f6c09e7
2 changed files with 6 additions and 6 deletions

View File

@ -203,7 +203,7 @@ class TestImageFont:
assert_image_similar(im, target_img, self.metrics["textsize"]) assert_image_similar(im, target_img, self.metrics["textsize"])
@pytest.mark.parametrize( @pytest.mark.parametrize(
"text,mode,font,size,length_basic_index,length_raqm", "text, mode, font, size, length_basic_index, length_raqm",
( (
# basic test # basic test
("text", "L", "FreeMono.ttf", 15, 0, 36), ("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) self._check_text(font, "Tests/images/variation_tiny_axes.png", 32.5)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"anchor,left,left_old,top", "anchor, left, left_old, top",
( (
# test horizontal anchors # test horizontal anchors
("ls", 0, 0, -36), ("ls", 0, 0, -36),
@ -835,7 +835,7 @@ class TestImageFont:
assert_image_similar(im, expected, 7) assert_image_similar(im, expected, 7)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"anchor,align", "anchor, align",
( (
# test horizontal anchors # test horizontal anchors
("lm", "left"), ("lm", "left"),

View File

@ -215,7 +215,7 @@ def test_language():
@pytest.mark.parametrize("mode", ("L", "1")) @pytest.mark.parametrize("mode", ("L", "1"))
@pytest.mark.parametrize( @pytest.mark.parametrize(
"text,direction,expected", "text, direction, expected",
( (
("سلطنة عمان Oman", None, 173.703125), ("سلطنة عمان Oman", None, 173.703125),
("سلطنة عمان Oman", "ltr", 173.703125), ("سلطنة عمان Oman", "ltr", 173.703125),
@ -327,7 +327,7 @@ combine_tests = (
# this tests various combining characters for anchor alignment and clipping # this tests various combining characters for anchor alignment and clipping
@pytest.mark.parametrize( @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): def test_combine(name, text, dir, anchor, epsilon):
if ( if (
@ -356,7 +356,7 @@ def test_combine(name, text, dir, anchor, epsilon):
@pytest.mark.parametrize( @pytest.mark.parametrize(
"anchor,align", "anchor, align",
( (
("lm", "left"), # pass with getsize ("lm", "left"), # pass with getsize
("lm", "center"), # fail at 2.12 ("lm", "center"), # fail at 2.12