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
Exemplo n.º 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
Exemplo n.º 7
0
 def test_bad_generic_functions(self, func):
     assert validate_one(self._import_path(  # noqa:F821
         klass='BadGenericDocStrings', func=func)) > 0
Exemplo n.º 8
0
 def test_bad_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='BadGenericDocStrings')) > 0
Exemplo n.º 9
0
 def test_good_functions(self, func):
     assert validate_one(self._import_path(   # noqa: F821
         klass='GoodDocStrings', func=func)) == 0
Exemplo n.º 10
0
 def test_good_class(self):
     assert validate_one(self._import_path(  # noqa: F821
         klass='GoodDocStrings')) == 0