Skip to content

Commit 16c869f

Browse files
author
Alex Volkov
committed
Added test for searching docstrings.
1 parent 4134d4a commit 16c869f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/tests/test_validate_docstrings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,7 @@ def test_bad_generic_functions(self, func):
825825
'E226 missing whitespace around arithmetic operator',)),
826826
('BadExamples', 'missing_whitespace_after_comma',
827827
("flake8 error: E231 missing whitespace after ',' (3 times)",)),
828-
('NoDocstrings', 'method_wo_docstrings',
829-
(""))
828+
('NoDocstrings', 'method_wo_docstrings', ("No docstring found",)),
830829
])
831830
def test_bad_examples(self, capsys, klass, func, msgs):
832831
result = validate_one(self._import_path(klass=klass, func=func))

0 commit comments

Comments
 (0)