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

Function pytest_sessionfinish

src/_pytest/stepwise.py:48–52  ·  view source on GitHub ↗
(session: Session)

Source from the content-addressed store, hash-verified

46
47
48def pytest_sessionfinish(session: Session) -> None:
49 if not session.config.getoption("stepwise"):
50 assert session.config.cache is not None
51 # Clear the list of failing tests if the plugin is not active.
52 session.config.cache.set(STEPWISE_CACHE_DIR, [])
53
54
55class StepwisePlugin:

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
getoptionMethod · 0.45

Tested by

no test coverage detected