From f69657b939c189ca36c92e5ce1f89474c5b062b6 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 b8bfbab9..edf52b51 100644 --- a/pylint_django/tests/test_func.py +++ b/pylint_django/tests/test_func.py @@ -22,6 +22,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): @@ -32,6 +33,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):