Skip to content

Commit 9358fae

Browse files
committed
Fix string prasing and test validator
1 parent 6a64a62 commit 9358fae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/tests/test_validate_docstrings.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,10 @@ class BadSeeAlso(object):
549549
def prefix_pandas(self):
550550
"""
551551
Return prefix with `pandas` from See Also sec
552+
553+
See Also
554+
--------
555+
pandas.Series.rename : Alter Series index labels or name
552556
"""
553557
pass
554558

@@ -665,7 +669,7 @@ def test_bad_generic_functions(self, func):
665669
marks=pytest.mark.xfail),
666670
# SeeAlso tests
667671
('BadSeeAlso', 'prefix_pandas',
668-
('Should not start with pandas',)),
672+
('section does not need the `pandas` prefix',)),
669673
])
670674
def test_bad_examples(self, capsys, klass, func, msgs):
671675
result = validate_one(self._import_path(klass=klass, func=func)) # noqa:F821

0 commit comments

Comments
 (0)