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

Function pytest_report_from_serializable

src/_pytest/subtests.py:351–354  ·  view source on GitHub ↗
(data: dict[str, Any])

Source from the content-addressed store, hash-verified

349
350
351def pytest_report_from_serializable(data: dict[str, Any]) -> SubtestReport | None:
352 if data.get("_report_type") == "SubTestReport":
353 return SubtestReport._from_json(data)
354 return None
355
356
357# Dict of nodeid -> number of failed subtests.

Callers 1

test_serializationFunction · 0.90

Calls 2

getMethod · 0.45
_from_jsonMethod · 0.45

Tested by

no test coverage detected