MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pytest_fixture_setup

Function pytest_fixture_setup

src/_pytest/hookspec.py:569–582  ·  view source on GitHub ↗

Perform fixture setup execution. :returns: The return value of the call to the fixture function. Stops at first non-None result, see :ref:`firstresult`. .. note:: If the fixture function returns None, other implementations of this hook function will continue to be call

(
    fixturedef: "FixtureDef[Any]", request: "SubRequest"
)

Source from the content-addressed store, hash-verified

567
568@hookspec(firstresult=True)
569def pytest_fixture_setup(
570 fixturedef: "FixtureDef[Any]", request: "SubRequest"
571) -> Optional[object]:
572 """Perform fixture setup execution.
573
574 :returns: The return value of the call to the fixture function.
575
576 Stops at first non-None result, see :ref:`firstresult`.
577
578 .. note::
579 If the fixture function returns None, other implementations of
580 this hook function will continue to be called, according to the
581 behavior of the :ref:`firstresult` option.
582 """
583
584
585def pytest_fixture_post_finalizer(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected