def test_clumper_docstrings(m): """ Take the docstring of every method on the `Clumper` class. The test passes if the usage examples causes no errors. """ check_docstring(m)
def test_docstring(func): """Check docstring of each function.""" check_docstring(obj=func)
def test_member(obj): check_docstring(obj)
def test_docstrings(func): check_docstring(func)
def test_docstring(func): check_docstring(obj=func)
def test_base_docstrings_bad(func, capsys): with pytest.raises(Exception): check_docstring(func) capsys.readouterr() assert func.__name__ in capsys.readouterr().out