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

Method pytest_sessionfinish

src/_pytest/stepwise.py:203–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 return None
202
203 def pytest_sessionfinish(self) -> None:
204 if hasattr(self.config, "workerinput"):
205 # Do not update cache if this process is a xdist worker to prevent
206 # race conditions (#10641).
207 return
208 self.cached_info.update_date_to_now()
209 self.cache.set(STEPWISE_CACHE_DIR, dataclasses.asdict(self.cached_info))

Callers

nothing calls this directly

Calls 2

update_date_to_nowMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected