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