diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-02-20 23:19:35 +0000 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-02-20 23:19:35 +0000 |
commit | b3f6242886a82f5723f584e6743f3c3e188e0c32 (patch) | |
tree | 127f37b06cfe1ed2adb6db7cd0798911b8b54ea8 /pylint/test | |
parent | 5d0e45d47758ed133e176a4b9a99f256ea9e3584 (diff) | |
download | pylint-git-b3f6242886a82f5723f584e6743f3c3e188e0c32.tar.gz |
Pass the proper objects to the validation functions from config.py
The problem was that the same validation functions were used both manually,
with a custom option dictionary, as well as used for optparse.TYPE_CHECKER
configuration, where they were expected to receive an optparse.Option object
instead. A common function was created instead, which expects already the choices.
Close #821
Diffstat (limited to 'pylint/test')
-rw-r--r-- | pylint/test/test_self.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index 3f25f97ca..b32284858 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -359,7 +359,13 @@ class RunTC(unittest.TestCase): def test_evaluation_score_shown_by_default(self): expected_output = 'Your code has been rated at -60.00/10' module = join(HERE, 'regrtest_data', 'application_crash.py') - self._test_output([module], expected_output=expected_output) + self._test_output([module], expected_output=expected_output) + + def test_confidence_levels(self): + expected = 'No config file found, using default configuration' + path = join(HERE, 'regrtest_data', 'meta.py') + self._test_output([path, "--confidence=HIGH,INFERENCE"], + expected_output=expected) if __name__ == '__main__': |