MCPcopy
hub / github.com/pytest-dev/pytest / pytest_fixture_post_finalizer

Function pytest_fixture_post_finalizer

src/_pytest/setuponly.py:53–61  ·  view source on GitHub ↗
(
    fixturedef: FixtureDef[object], request: SubRequest
)

Source from the content-addressed store, hash-verified

51
52
53def pytest_fixture_post_finalizer(
54 fixturedef: FixtureDef[object], request: SubRequest
55) -> None:
56 if fixturedef.cached_result is not None:
57 config = request.config
58 if config.option.setupshow:
59 _show_fixture_action(fixturedef, request.config, "TEARDOWN")
60 if hasattr(fixturedef, "cached_param"):
61 del fixturedef.cached_param
62
63
64def _show_fixture_action(

Callers

nothing calls this directly

Calls 1

_show_fixture_actionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…