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

Function pytest_fixture_post_finalizer

src/_pytest/hookspec.py:585–590  ·  view source on GitHub ↗

Called after fixture teardown, but before the cache is cleared, so the fixture result ``fixturedef.cached_result`` is still available (not ``None``).

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

Source from the content-addressed store, hash-verified

583
584
585def pytest_fixture_post_finalizer(
586 fixturedef: "FixtureDef[Any]", request: "SubRequest"
587) -> None:
588 """Called after fixture teardown, but before the cache is cleared, so
589 the fixture result ``fixturedef.cached_result`` is still available (not
590 ``None``)."""
591
592
593# -------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected