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 30, 2019
1 parent 0d45740 commit d1e69c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylint_django/tests/test_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit d1e69c5

Please sign in to comment.