Skip to content

Commit 744115a

Browse files
committed
Fix string prasing and test validator
1 parent 4971937 commit 744115a

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
@@ -505,6 +505,10 @@ class BadSeeAlso(object):
505505
def prefix_pandas(self):
506506
"""
507507
Return prefix with `pandas` from See Also sec
508+
509+
See Also
510+
--------
511+
pandas.Series.rename : Alter Series index labels or name
508512
"""
509513
pass
510514

@@ -609,7 +613,7 @@ def test_bad_generic_functions(self, func):
609613
marks=pytest.mark.xfail),
610614
# SeeAlso tests
611615
('BadSeeAlso', 'prefix_pandas',
612-
('Should not start with pandas',)),
616+
('section does not need the `pandas` prefix',)),
613617
])
614618
def test_bad_examples(self, capsys, klass, func, msgs):
615619
result = validate_one(self._import_path(klass=klass, func=func)) # noqa:F821

0 commit comments

Comments
 (0)