-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
metafunc.config is not included in the API reference for metafunc - presumably, the documentation comment needs to be directly above the line that sets self.config, but it isn't:
class Metafunc(fixtures.FuncargnamesCompatAttr):
"""
Metafunc objects are passed to the :func:`pytest_generate_tests <_pytest.hookspec.pytest_generate_tests>` hook.
They help to inspect a test function and to generate tests according to
test configuration or values specified in the class or module where a
test function is defined.
"""
def __init__(self, definition, fixtureinfo, config, cls=None, module=None):
#: access to the :class:`_pytest.config.Config` object for the test session
assert (
isinstance(definition, FunctionDefinition)
or type(definition).__name__ == "DefinitionMock"
)
self.definition = definition
self.config = configReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels