From cef350ad661b9e8b01144ffd22c3f4f2400dabb7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Jul 2015 17:55:44 +0200 Subject: [PATCH] tests: Use multiple pytest.mark.parametrize calls. --- tests/config/test_configtypes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/config/test_configtypes.py b/tests/config/test_configtypes.py index edb0bb8cb..5501f0a96 100644 --- a/tests/config/test_configtypes.py +++ b/tests/config/test_configtypes.py @@ -1172,14 +1172,14 @@ class TestFont: t.validate('') t2.validate('') - @pytest.mark.parametrize('val, attr', - itertools.product(TESTS, ['t', 't2'])) + @pytest.mark.parametrize('val', TESTS) + @pytest.mark.parametrize('attr', ['t', 't2']) def test_validate_valid(self, val, attr): """Test validate with valid values.""" getattr(self, attr).validate(val) - @pytest.mark.parametrize('val, attr', - itertools.product(INVALID, ['t', 't2'])) + @pytest.mark.parametrize('val', INVALID) + @pytest.mark.parametrize('attr', ['t', 't2']) @pytest.mark.xfail(reason='FIXME: #103') def test_validate_invalid(self, val, attr): """Test validate with invalid values."""