@@ -334,6 +334,33 @@ def method(self, foo=None, bar=None):
334
334
pass
335
335
336
336
337
+ class BadSeeAlso (object ):
338
+
339
+ def desc_no_period (self ):
340
+ """
341
+ Return the first 5 elements of the Series.
342
+
343
+ See Also
344
+ --------
345
+ Series.tail : Return the last 5 elements of the Series.
346
+ Series.iloc : Return a slice of the elements in the Series,
347
+ which can also be used to return the first or last n
348
+ """
349
+ pass
350
+
351
+ def desc_first_letter_lowercase (self ):
352
+ """
353
+ Return the first 5 elements of the Series.
354
+
355
+ See Also
356
+ --------
357
+ Series.tail : return the last 5 elements of the Series.
358
+ Series.iloc : Return a slice of the elements in the Series,
359
+ which can also be used to return the first or last n.
360
+ """
361
+ pass
362
+
363
+
337
364
class BadSummaries (object ):
338
365
339
366
def wrong_line (self ):
@@ -608,6 +635,11 @@ def test_bad_generic_functions(self, func):
608
635
assert errors
609
636
610
637
@pytest .mark .parametrize ("klass,func,msgs" , [
638
+ # See Also tests
639
+ ('BadSeeAlso' , 'desc_no_period' ,
640
+ ('Missing period at end of description for See Also "Series.iloc"' ,)),
641
+ ('BadSeeAlso' , 'desc_first_letter_lowercase' ,
642
+ ('should be capitalized for See Also "Series.tail"' ,)),
611
643
# Summary tests
612
644
('BadSummaries' , 'wrong_line' ,
613
645
('should start in the line immediately after the opening quotes' ,)),
0 commit comments