Unhide documentation for metafunc.config

Fixes #3746.
This commit is contained in:
Josh Holland 2018-08-11 20:48:55 +01:00
parent 4d8903fd0b
commit abbd7c30a4
No known key found for this signature in database
GPG Key ID: 019C043D72596592
2 changed files with 3 additions and 1 deletions

1
changelog/3746.doc.rst Normal file
View File

@ -0,0 +1 @@
Add documentation for ``metafunc.config`` that had been mistakenly hidden.

View File

@ -883,12 +883,13 @@ class Metafunc(fixtures.FuncargnamesCompatAttr):
""" """
def __init__(self, definition, fixtureinfo, config, cls=None, module=None): def __init__(self, definition, fixtureinfo, config, cls=None, module=None):
#: access to the :class:`_pytest.config.Config` object for the test session
assert ( assert (
isinstance(definition, FunctionDefinition) isinstance(definition, FunctionDefinition)
or type(definition).__name__ == "DefinitionMock" or type(definition).__name__ == "DefinitionMock"
) )
self.definition = definition self.definition = definition
#: access to the :class:`_pytest.config.Config` object for the test session
self.config = config self.config = config
#: the module object where the test function is defined in. #: the module object where the test function is defined in.