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

Function pytest_report_to_serializable

src/_pytest/subtests.py:345–348  ·  view source on GitHub ↗
(report: TestReport)

Source from the content-addressed store, hash-verified

343
344
345def pytest_report_to_serializable(report: TestReport) -> dict[str, Any] | None:
346 if isinstance(report, SubtestReport):
347 return report._to_json()
348 return None
349
350
351def pytest_report_from_serializable(data: dict[str, Any]) -> SubtestReport | None:

Callers 1

test_serializationFunction · 0.90

Calls 1

_to_jsonMethod · 0.45

Tested by

no test coverage detected