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

Function pytest_fixture_post_finalizer

src/_pytest/setuponly.py:51–57  ·  view source on GitHub ↗
(fixturedef: FixtureDef[object])

Source from the content-addressed store, hash-verified

49
50
51def pytest_fixture_post_finalizer(fixturedef: FixtureDef[object]) -> None:
52 if fixturedef.cached_result is not None:
53 config = fixturedef._fixturemanager.config
54 if config.option.setupshow:
55 _show_fixture_action(fixturedef, "TEARDOWN")
56 if hasattr(fixturedef, "cached_param"):
57 del fixturedef.cached_param # type: ignore[attr-defined]
58
59
60def _show_fixture_action(fixturedef: FixtureDef[object], msg: str) -> None:

Callers

nothing calls this directly

Calls 1

_show_fixture_actionFunction · 0.85

Tested by

no test coverage detected