Skip to content

Commit d2ad9ff

Browse files
psrbatodorov
authored andcommitted
Load pylint plugin configuration in test case
When running the tests the plugin was loaded but its `load_configuration` function was not called. The function needs to be called so changes to config entries can be tested.
1 parent f75962f commit d2ad9ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylint_django/tests/test_func.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class PylintDjangoLintModuleTest(test_functional.LintModuleTest):
2929
def __init__(self, test_file):
3030
super(PylintDjangoLintModuleTest, self).__init__(test_file)
3131
self._linter.load_plugin_modules(['pylint_django'])
32+
self._linter.load_plugin_configuration()
3233

3334

3435
class PylintDjangoDbPerformanceTest(PylintDjangoLintModuleTest):
@@ -39,6 +40,7 @@ class PylintDjangoDbPerformanceTest(PylintDjangoLintModuleTest):
3940
def __init__(self, test_file):
4041
super(PylintDjangoDbPerformanceTest, self).__init__(test_file)
4142
self._linter.load_plugin_modules(['pylint_django.checkers.db_performance'])
43+
self._linter.load_plugin_configuration()
4244

4345

4446
def get_tests(input_dir='input', sort=False):

0 commit comments

Comments
 (0)