From cb3f6c09e70901ed73c5f5e1318dbdba68702ad2 Mon Sep 17 00:00:00 2001 From: nulano Date: Mon, 12 Oct 2020 16:08:16 +0100 Subject: [PATCH] add spaces between pytest.mark.parametrize parameters --- Tests/test_imagefont.py | 6 +++--- Tests/test_imagefontctl.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tests/test_imagefont.py b/Tests/test_imagefont.py index d2a53e7e7..5e83ddefd 100644 --- a/Tests/test_imagefont.py +++ b/Tests/test_imagefont.py @@ -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"), diff --git a/Tests/test_imagefontctl.py b/Tests/test_imagefontctl.py index f4ab37c54..f538bf71b 100644 --- a/Tests/test_imagefontctl.py +++ b/Tests/test_imagefontctl.py @@ -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