Merge pull request #3807 from anowlcalledjosh/metafunc-config-doc
Unhide documentation for metafunc.config
This commit is contained in:
commit
87a99275fb
|
@ -0,0 +1 @@
|
|||
Add documentation for ``metafunc.config`` that had been mistakenly hidden.
|
|
@ -883,12 +883,13 @@ class Metafunc(fixtures.FuncargnamesCompatAttr):
|
|||
"""
|
||||
|
||||
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
|
||||
|
||||
#: access to the :class:`_pytest.config.Config` object for the test session
|
||||
self.config = config
|
||||
|
||||
#: the module object where the test function is defined in.
|
||||
|
|
Loading…
Reference in New Issue