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

Method pytest_collectreport

src/_pytest/cacheprovider.py:318–325  ·  view source on GitHub ↗
(self, report: CollectReport)

Source from the content-addressed store, hash-verified

316 self.lastfailed[report.nodeid] = True
317
318 def pytest_collectreport(self, report: CollectReport) -> None:
319 passed = report.outcome in ("passed", "skipped")
320 if passed:
321 if report.nodeid in self.lastfailed:
322 self.lastfailed.pop(report.nodeid)
323 self.lastfailed.update((item.nodeid, True) for item in report.result)
324 else:
325 self.lastfailed[report.nodeid] = True
326
327 @hookimpl(hookwrapper=True, tryfirst=True)
328 def pytest_collection_modifyitems(

Callers

nothing calls this directly

Calls 2

popMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected