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"
)
| 567 | |
| 568 | @hookspec(firstresult=True) |
| 569 | def 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 | |
| 585 | def pytest_fixture_post_finalizer( |
nothing calls this directly
no outgoing calls
no test coverage detected