diff options
| author | Ashley Whetter <awhetter.2011@my.bristol.ac.uk> | 2016-05-20 13:58:24 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-05-20 13:58:24 +0100 |
| commit | 05eb7fd20e279b5616bea237d0effcbd598a9583 (patch) | |
| tree | 6073d1fcd2a7aeb138d6efaf540cb6ca84196310 /pylint/test/extensions/test_check_docs.py | |
| parent | 4d8336b527bded620c8c24d3ed442539d9256f04 (diff) | |
| download | pylint-git-05eb7fd20e279b5616bea237d0effcbd598a9583.tar.gz | |
Added a new extension for checking documented exceptions raised (#904)
Add check_raises_docs
Closes #904
Diffstat (limited to 'pylint/test/extensions/test_check_docs.py')
| -rw-r--r-- | pylint/test/extensions/test_check_docs.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/pylint/test/extensions/test_check_docs.py b/pylint/test/extensions/test_check_docs.py index 01ea79068..41371c0ee 100644 --- a/pylint/test/extensions/test_check_docs.py +++ b/pylint/test/extensions/test_check_docs.py @@ -1,5 +1,5 @@ """Unit tests for the pylint checkers in :mod:`pylint.extensions.check_docs`, -in particular the parameter documentation checker `ParamDocChecker` +in particular the parameter documentation checker `DocstringChecker` """ from __future__ import division, print_function, absolute_import @@ -10,19 +10,12 @@ import astroid from astroid import test_utils from pylint.testutils import CheckerTestCase, Message, set_config -from pylint.extensions.check_docs import ParamDocChecker, space_indentation +from pylint.extensions.check_docs import DocstringChecker class ParamDocCheckerTest(CheckerTestCase): """Tests for pylint_plugin.ParamDocChecker""" - CHECKER_CLASS = ParamDocChecker - - def test_space_indentation(self): - self.assertEqual(space_indentation('abc'), 0) - self.assertEqual(space_indentation(''), 0) - self.assertEqual(space_indentation(' abc'), 2) - self.assertEqual(space_indentation('\n abc'), 0) - self.assertEqual(space_indentation(' \n abc'), 3) + CHECKER_CLASS = DocstringChecker def test_missing_func_params_in_sphinx_docstring(self): """Example of a function with missing Sphinx parameter documentation in |
