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 authored and atodorov committed Oct 31, 2019
1 parent f5c5fe6 commit 279ce69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylint_django/tests/test_func.py
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 279ce69

Please sign in to comment.