Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
def test_docstring(func):
    """Check docstring of each function."""
    check_docstring(obj=func)
Ejemplo n.º 3
0
def test_member(obj):
    check_docstring(obj)
Ejemplo n.º 4
0
def test_docstrings(func):
    check_docstring(func)
Ejemplo n.º 5
0
def test_docstring(func):
    check_docstring(obj=func)
Ejemplo n.º 6
0
def test_base_docstrings_bad(func, capsys):
    with pytest.raises(Exception):
        check_docstring(func)
        capsys.readouterr()
        assert func.__name__ in capsys.readouterr().out