def test_bad_examples(self, capsys, klass, func, msgs):
     validate_one(self._import_path(klass=klass, func=func))  # noqa:F821
     err = capsys.readouterr().err
     for msg in msgs:
         assert msg in err
 def test_bad_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='BadGenericDocStrings')) > 0
 def test_bad_generic_functions(self, func):
     assert validate_one(self._import_path(  # noqa:F821
         klass='BadGenericDocStrings', func=func)) > 0
 def test_good_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='GoodDocStrings')) == 0
 def test_good_functions(self, func):
     assert validate_one(self._import_path(   # noqa: F821
         klass='GoodDocStrings', func=func)) == 0
예제 #6
0
 def test_bad_examples(self, capsys, klass, func, msgs):
     validate_one(self._import_path(klass=klass, func=func))  # noqa:F821
     err = capsys.readouterr().err
     for msg in msgs:
         assert msg in err
예제 #7
0
 def test_bad_generic_functions(self, func):
     assert validate_one(self._import_path(  # noqa:F821
         klass='BadGenericDocStrings', func=func)) > 0
예제 #8
0
 def test_bad_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='BadGenericDocStrings')) > 0
예제 #9
0
 def test_good_functions(self, func):
     assert validate_one(self._import_path(   # noqa: F821
         klass='GoodDocStrings', func=func)) == 0
예제 #10
0
 def test_good_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='GoodDocStrings')) == 0