@@ -51,14 +51,14 @@ def __init__(self, test_file):
5151 self ._linter .load_plugin_configuration ()
5252
5353
54- class PylintDjangoDbPerformanceTest (PylintDjangoLintModuleTest ):
54+ class PylintDjangoMigrationsTest (PylintDjangoLintModuleTest ):
5555 """
5656 Only used so that we can load
57- pylint_django.checkers.db_performance into the linter!
57+ pylint_django.checkers.migrations into the linter!
5858 """
5959 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 ' ])
6262 self ._linter .load_plugin_configuration ()
6363
6464
@@ -74,7 +74,7 @@ def _file_name(test):
7474 if fname != '__init__.py' and fname .endswith ('.py' ):
7575 suite .append (FunctionalTestFile (input_dir , fname ))
7676
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
7878 # because the plugin reports the errors in close() which appends them to the
7979 # report for the last file in the list
8080 if sort :
@@ -96,14 +96,14 @@ def test_everything(test_file):
9696 LintTest ._runTest ()
9797
9898
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 ]
102102
103103
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 )
107107 LintTest .setUp ()
108108 LintTest ._runTest ()
109109
0 commit comments