fixtures.nelson module

class fixtures.nelson.GoogleDocstring(*args, **kwargs)[source]

Bases: sphinx.ext.napoleon.docstring.GoogleDocstring

Custom version of napoleon’s GoogleDocstring that adds some special cases

fixtures.nelson.get_meta(obj)[source]
fixtures.nelson.pytest_collection_modifyitems(items)[source]
fixtures.nelson.pytest_pycollect_makeitem(collector, name, obj)[source]

pytest hook that adds docstring metadata (if found) to a test’s meta mark

fixtures.nelson.setup(app)[source]

Sphinx extension setup function.

fixtures.nelson.stripper(docstring)[source]

Slightly smarter dedent

It strips a docstring’s first line indentation and dedents the rest