@@ -51,14 +51,14 @@ def __init__(self, test_file):
51
51
self ._linter .load_plugin_configuration ()
52
52
53
53
54
- class PylintDjangoDbPerformanceTest (PylintDjangoLintModuleTest ):
54
+ class PylintDjangoMigrationsTest (PylintDjangoLintModuleTest ):
55
55
"""
56
56
Only used so that we can load
57
- pylint_django.checkers.db_performance into the linter!
57
+ pylint_django.checkers.migrations into the linter!
58
58
"""
59
59
def __init__ (self , test_file ):
60
- super (PylintDjangoDbPerformanceTest , self ).__init__ (test_file )
61
- self ._linter .load_plugin_modules (['pylint_django.checkers.db_performance ' ])
60
+ super ().__init__ (test_file )
61
+ self ._linter .load_plugin_modules (['pylint_django.checkers.migrations ' ])
62
62
self ._linter .load_plugin_configuration ()
63
63
64
64
@@ -74,7 +74,7 @@ def _file_name(test):
74
74
if fname != '__init__.py' and fname .endswith ('.py' ):
75
75
suite .append (FunctionalTestFile (input_dir , fname ))
76
76
77
- # when testing the db_performance plugin we need to sort by input file name
77
+ # when testing the migrations plugin we need to sort by input file name
78
78
# because the plugin reports the errors in close() which appends them to the
79
79
# report for the last file in the list
80
80
if sort :
@@ -96,14 +96,14 @@ def test_everything(test_file):
96
96
LintTest ._runTest ()
97
97
98
98
99
- # NOTE: define tests for the db_performance checker!
100
- DB_PERFORMANCE_TESTS = get_tests ('input/migrations' , True )
101
- DB_PERFORMANCE_TESTS_NAMES = [t .base for t in DB_PERFORMANCE_TESTS ]
99
+ # NOTE: define tests for the migrations checker!
100
+ MIGRATIONS_TESTS = get_tests ('input/migrations' , True )
101
+ MIGRATIONS_TESTS_NAMES = [t .base for t in MIGRATIONS_TESTS ]
102
102
103
103
104
- @pytest .mark .parametrize ("test_file" , DB_PERFORMANCE_TESTS , ids = DB_PERFORMANCE_TESTS_NAMES )
105
- def test_db_performance_plugin (test_file ):
106
- LintTest = PylintDjangoDbPerformanceTest (test_file )
104
+ @pytest .mark .parametrize ("test_file" , MIGRATIONS_TESTS , ids = MIGRATIONS_TESTS_NAMES )
105
+ def test_migrations_plugin (test_file ):
106
+ LintTest = PylintDjangoMigrationsTest (test_file )
107
107
LintTest .setUp ()
108
108
LintTest ._runTest ()
109
109
0 commit comments