Skip to content

Commit

Permalink
Load pylint plugin configuration in test case
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
psrb committed Oct 27, 2019
1 parent 3c89d1f commit f69657b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylint_django/tests/test_func.py
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit f69657b

Please sign in to comment.