Skip to content
Snippets Groups Projects
Commit e100ce48 authored by Ashley Whetter's avatar Ashley Whetter Committed by Claudiu Popa
Browse files

Fixed masking of docparam test failures

parent 12c954ee
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -24,6 +24,9 @@ from pylint.extensions.docparams import DocstringParameterChecker
class TestParamDocChecker(CheckerTestCase):
"""Tests for pylint_plugin.ParamDocChecker"""
CHECKER_CLASS = DocstringParameterChecker
CONFIG = {
'accept_no_param_doc': False,
}
 
def test_missing_func_params_in_sphinx_docstring(self):
"""Example of a function with missing Sphinx parameter documentation in
Loading
Loading
@@ -167,6 +170,7 @@ class TestParamDocChecker(CheckerTestCase):
):
self.checker.visit_functiondef(node)
 
@set_config(accept_no_param_doc=True)
def test_tolerate_no_param_documentation_at_all(self):
"""Example of a function with no parameter documentation at all
 
Loading
Loading
@@ -182,7 +186,6 @@ class TestParamDocChecker(CheckerTestCase):
with self.assertNoMessages():
self.checker.visit_functiondef(node)
 
@set_config(accept_no_param_doc=False)
def test_don_t_tolerate_no_param_documentation_at_all(self):
"""Example of a function with no parameter documentation at all
 
Loading
Loading
@@ -207,7 +210,6 @@ class TestParamDocChecker(CheckerTestCase):
):
self.checker.visit_functiondef(node)
 
@set_config(accept_no_param_doc=False)
def test_see_tolerate_no_param_documentation_at_all(self):
"""Example for the usage of "For the parameters, see"
to suppress missing-param warnings.
Loading
Loading
@@ -841,7 +843,6 @@ class TestParamDocChecker(CheckerTestCase):
):
self._visit_methods_of_class(node)
 
@set_config(accept_no_param_doc=False)
def test_see_sentence_for_constr_params_in_class(self):
"""Example usage of "For the parameters, see" in class docstring"""
node = astroid.extract_node("""
Loading
Loading
@@ -859,7 +860,6 @@ class TestParamDocChecker(CheckerTestCase):
with self.assertNoMessages():
self._visit_methods_of_class(node)
 
@set_config(accept_no_param_doc=False)
def test_see_sentence_for_constr_params_in_init(self):
"""Example usage of "For the parameters, see" in init docstring"""
node = astroid.extract_node("""
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment