@@ -333,15 +333,6 @@ def method(self, foo=None, bar=None):
333
333
"""
334
334
pass
335
335
336
-
337
- class BadSeeAlso (object ):
338
-
339
- def prefix_pandas (self ):
340
- """
341
- Return prefix with `pandas` from See Also sec
342
- """
343
- pass
344
-
345
336
class BadSummaries (object ):
346
337
347
338
def wrong_line (self ):
@@ -509,6 +500,13 @@ def no_punctuation(self):
509
500
"""
510
501
return "Hello world!"
511
502
503
+ class BadSeeAlso (object ):
504
+
505
+ def prefix_pandas (self ):
506
+ """
507
+ Return prefix with `pandas` from See Also sec
508
+ """
509
+ pass
512
510
513
511
class TestValidator (object ):
514
512
@@ -572,9 +570,6 @@ def test_bad_generic_functions(self, func):
572
570
assert errors
573
571
574
572
@pytest .mark .parametrize ("klass,func,msgs" , [
575
- #SeeAlso tests
576
- ('BadSeeAlso' , 'prefix_pandas' ,
577
- ('Should not start with pandas' ,)),
578
573
# Summary tests
579
574
('BadSummaries' , 'wrong_line' ,
580
575
('should start in the line immediately after the opening quotes' ,)),
@@ -611,7 +606,10 @@ def test_bad_generic_functions(self, func):
611
606
pytest .param ('BadReturns' , 'no_description' , ('foo' ,),
612
607
marks = pytest .mark .xfail ),
613
608
pytest .param ('BadReturns' , 'no_punctuation' , ('foo' ,),
614
- marks = pytest .mark .xfail )
609
+ marks = pytest .mark .xfail ),
610
+ # SeeAlso tests
611
+ ('BadSeeAlso' , 'prefix_pandas' ,
612
+ ('Should not start with pandas' ,)),
615
613
])
616
614
def test_bad_examples (self , capsys , klass , func , msgs ):
617
615
result = validate_one (self ._import_path (klass = klass , func = func )) # noqa:F821
0 commit comments