From ece701a7bb6ff84b1f23984bee312bc916673586 Mon Sep 17 00:00:00 2001 From: Pascal Urban Date: Sun, 27 Oct 2019 22:58:56 +0100 Subject: [PATCH] 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. --- pylint_django/tests/test_func.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylint_django/tests/test_func.py b/pylint_django/tests/test_func.py index 19516219..3b3cb5a2 100644 --- a/pylint_django/tests/test_func.py +++ b/pylint_django/tests/test_func.py @@ -29,6 +29,7 @@ class PylintDjangoLintModuleTest(test_functional.LintModuleTest): def __init__(self, test_file): super(PylintDjangoLintModuleTest, self).__init__(test_file) self._linter.load_plugin_modules(['pylint_django']) + self._linter.load_plugin_configuration() class PylintDjangoDbPerformanceTest(PylintDjangoLintModuleTest): @@ -39,6 +40,7 @@ class PylintDjangoDbPerformanceTest(PylintDjangoLintModuleTest): def __init__(self, test_file): super(PylintDjangoDbPerformanceTest, self).__init__(test_file) self._linter.load_plugin_modules(['pylint_django.checkers.db_performance']) + self._linter.load_plugin_configuration() def get_tests(input_dir='input', sort=False):