@@ -97,9 +97,9 @@ def _file_name(test):
9797@pytest .mark .parametrize ("test_file" , TESTS , ids = TESTS_NAMES )
9898def test_everything (test_file ):
9999 # copied from pylint.tests.test_functional.test_functional
100- LintTest = PylintDjangoLintModuleTest (test_file )
101- LintTest .setUp ()
102- LintTest ._runTest ()
100+ lint_test = PylintDjangoLintModuleTest (test_file )
101+ lint_test .setUp ()
102+ lint_test ._runTest ()
103103
104104
105105# NOTE: define tests for the migrations checker!
@@ -109,21 +109,17 @@ def test_everything(test_file):
109109
110110@pytest .mark .parametrize ("test_file" , MIGRATIONS_TESTS , ids = MIGRATIONS_TESTS_NAMES )
111111def test_migrations_plugin (test_file ):
112- LintTest = PylintDjangoMigrationsTest (test_file )
113- LintTest .setUp ()
114- LintTest . _runTest ()
112+ lint_test = PylintDjangoMigrationsTest (test_file )
113+ lint_test .setUp ()
114+ lint_test . runTest ()
115115
116116
117117@pytest .mark .parametrize ("test_file" , MIGRATIONS_TESTS [:1 ], ids = MIGRATIONS_TESTS_NAMES [:1 ])
118118@pytest .mark .skip # currently skipped because ArgParser which pylint uses is not picklable so ...
119119def test_linter_should_be_pickleable_with_pylint_django_plugin_installed (test_file ):
120- LintTest = PylintDjangoMigrationsTest (test_file )
121- LintTest .setUp ()
120+ lint_test = PylintDjangoMigrationsTest (test_file )
121+ lint_test .setUp ()
122122
123123 # LintModuleTest sets reporter to instance of FunctionalTestReporter that is not picklable
124- LintTest ._linter .reporter = None
125- pickle .dumps (LintTest ._linter )
126-
127-
128- if __name__ == "__main__" :
129- sys .exit (pytest .main (sys .argv ))
124+ lint_test ._linter .reporter = None
125+ pickle .dumps (lint_test ._linter )
0 commit comments