@@ -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 ):
@@ -553,6 +544,13 @@ def no_punctuation(self):
553
544
"""
554
545
return "Hello world!"
555
546
547
+ class BadSeeAlso (object ):
548
+
549
+ def prefix_pandas (self ):
550
+ """
551
+ Return prefix with `pandas` from See Also sec
552
+ """
553
+ pass
556
554
557
555
class TestValidator (object ):
558
556
@@ -616,9 +614,6 @@ def test_bad_generic_functions(self, func):
616
614
assert errors
617
615
618
616
@pytest .mark .parametrize ("klass,func,msgs" , [
619
- #SeeAlso tests
620
- ('BadSeeAlso' , 'prefix_pandas' ,
621
- ('Should not start with pandas' ,)),
622
617
# Summary tests
623
618
('BadSummaries' , 'wrong_line' ,
624
619
('should start in the line immediately after the opening quotes' ,)),
@@ -667,7 +662,10 @@ def test_bad_generic_functions(self, func):
667
662
pytest .param ('BadReturns' , 'no_description' , ('foo' ,),
668
663
marks = pytest .mark .xfail ),
669
664
pytest .param ('BadReturns' , 'no_punctuation' , ('foo' ,),
670
- marks = pytest .mark .xfail )
665
+ marks = pytest .mark .xfail ),
666
+ # SeeAlso tests
667
+ ('BadSeeAlso' , 'prefix_pandas' ,
668
+ ('Should not start with pandas' ,)),
671
669
])
672
670
def test_bad_examples (self , capsys , klass , func , msgs ):
673
671
result = validate_one (self ._import_path (klass = klass , func = func )) # noqa:F821
0 commit comments