From ba678e29fbba687c7eb7dae05f934d203dd18c3a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 14 Apr 2015 07:00:56 +0200 Subject: [PATCH] Fix lint. --- tests/misc/test_split.py | 7 ++++--- tests/utils/overflow_test_cases.py | 14 +++++++------- tests/utils/test_qtutils.py | 5 +++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/misc/test_split.py b/tests/misc/test_split.py index 75c485937..65fa218b1 100644 --- a/tests/misc/test_split.py +++ b/tests/misc/test_split.py @@ -131,9 +131,10 @@ class TestSplit: @pytest.fixture(params=_parse_split_test_data_str()) def split_test_case(self, request): - """ - Fixture that will automatically parametrize all tests the depend on it - using the parsed test case data. + """Fixture to automatically parametrize all depending tests. + + It will use the test data from test_data_str, parsed using + _parse_split_test_data_str(). """ return request.param diff --git a/tests/utils/overflow_test_cases.py b/tests/utils/overflow_test_cases.py index 2801c1b72..08e6ae7a8 100644 --- a/tests/utils/overflow_test_cases.py +++ b/tests/utils/overflow_test_cases.py @@ -50,9 +50,9 @@ BAD_VALUES = { def iter_good_values(): - """ - Yields pairs of (c data type, value) which should pass overflow - checking. + """Yield "good" (C data type, value) tuples. + + Those should pass overflow checking. """ for ctype, values in GOOD_VALUES.items(): for value in values: @@ -60,10 +60,10 @@ def iter_good_values(): def iter_bad_values(): - """ - Yields pairs of (c type, value, repl) for values which don't pass - overflow checking, and a value they should be replaced with if overflow - checking should not be fatal. + """Yield pairs of "bad" (C type, value, repl) tuples. + + Theose should not pass overflow checking. The third value is the value they + should be replaced with if overflow checking should not be fatal. """ for ctype, values in BAD_VALUES.items(): for value, repl in values: diff --git a/tests/utils/test_qtutils.py b/tests/utils/test_qtutils.py index 07633e46a..85a99c2f4 100644 --- a/tests/utils/test_qtutils.py +++ b/tests/utils/test_qtutils.py @@ -29,8 +29,8 @@ import overflow_test_cases class TestCheckOverflow: - """Test check_overflow. - """ + + """Test check_overflow.""" @pytest.mark.parametrize('ctype, val', overflow_test_cases.iter_good_values()) @@ -55,6 +55,7 @@ class TestCheckOverflow: class TestGetQtArgs: + """Tests for get_args.""" @pytest.fixture