@@ -97,9 +97,9 @@ def _file_name(test):
97
97
@pytest .mark .parametrize ("test_file" , TESTS , ids = TESTS_NAMES )
98
98
def test_everything (test_file ):
99
99
# 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 ()
103
103
104
104
105
105
# NOTE: define tests for the migrations checker!
@@ -109,21 +109,17 @@ def test_everything(test_file):
109
109
110
110
@pytest .mark .parametrize ("test_file" , MIGRATIONS_TESTS , ids = MIGRATIONS_TESTS_NAMES )
111
111
def 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 ()
115
115
116
116
117
117
@pytest .mark .parametrize ("test_file" , MIGRATIONS_TESTS [:1 ], ids = MIGRATIONS_TESTS_NAMES [:1 ])
118
118
@pytest .mark .skip # currently skipped because ArgParser which pylint uses is not picklable so ...
119
119
def 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 ()
122
122
123
123
# 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