diff options
Diffstat (limited to 'pylint/test/test_self.py')
-rw-r--r-- | pylint/test/test_self.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index 228c808..b430b12 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -247,6 +247,23 @@ class RunTC(unittest.TestCase): expected = "no such option: --load-plugin" self._test_output([".", "--load-plugin"], expected_output=expected) + def test_enable_all_works(self): + module = join(HERE, 'data', 'clientmodule_test.py') + expected = textwrap.dedent(""" + No config file found, using default configuration + ************* Module data.clientmodule_test + W: 10, 8: Unused variable 'local_variable' (unused-variable) + C: 18, 4: Missing method docstring (missing-docstring) + C: 22, 0: Missing class docstring (missing-docstring) + """) + self._test_output([module, "--disable=all", "--enable=all", "-rn"], + expected_output=expected) + + def test_html_crash_report(self): + out = six.StringIO() + module = join(HERE, 'regrtest_data', 'html_crash_420.py') + self._runtest([module], code=16, reporter=HTMLReporter(out)) + if __name__ == '__main__': unittest.main() |