Skip to content

Commit e100ce4

Browse files
AWhetterPCManticore
authored andcommitted
Fixed masking of docparam test failures
1 parent 12c954e commit e100ce4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pylint/test/extensions/test_check_docs.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
class TestParamDocChecker(CheckerTestCase):
2525
"""Tests for pylint_plugin.ParamDocChecker"""
2626
CHECKER_CLASS = DocstringParameterChecker
27+
CONFIG = {
28+
'accept_no_param_doc': False,
29+
}
2730

2831
def test_missing_func_params_in_sphinx_docstring(self):
2932
"""Example of a function with missing Sphinx parameter documentation in
@@ -167,6 +170,7 @@ def function_foo(x, y, z):
167170
):
168171
self.checker.visit_functiondef(node)
169172

173+
@set_config(accept_no_param_doc=True)
170174
def test_tolerate_no_param_documentation_at_all(self):
171175
"""Example of a function with no parameter documentation at all
172176
@@ -182,7 +186,6 @@ def function_foo(x, y):
182186
with self.assertNoMessages():
183187
self.checker.visit_functiondef(node)
184188

185-
@set_config(accept_no_param_doc=False)
186189
def test_don_t_tolerate_no_param_documentation_at_all(self):
187190
"""Example of a function with no parameter documentation at all
188191
@@ -207,7 +210,6 @@ def function_foo(x, y):
207210
):
208211
self.checker.visit_functiondef(node)
209212

210-
@set_config(accept_no_param_doc=False)
211213
def test_see_tolerate_no_param_documentation_at_all(self):
212214
"""Example for the usage of "For the parameters, see"
213215
to suppress missing-param warnings.
@@ -841,7 +843,6 @@ def __init__(self, x, y):
841843
):
842844
self._visit_methods_of_class(node)
843845

844-
@set_config(accept_no_param_doc=False)
845846
def test_see_sentence_for_constr_params_in_class(self):
846847
"""Example usage of "For the parameters, see" in class docstring"""
847848
node = astroid.extract_node("""
@@ -859,7 +860,6 @@ def __init__(self, x, y):
859860
with self.assertNoMessages():
860861
self._visit_methods_of_class(node)
861862

862-
@set_config(accept_no_param_doc=False)
863863
def test_see_sentence_for_constr_params_in_init(self):
864864
"""Example usage of "For the parameters, see" in init docstring"""
865865
node = astroid.extract_node("""

0 commit comments

Comments
 (0)