(
data: dict[str, Any],
)
| 525 | |
| 526 | |
| 527 | def pytest_report_from_serializable( |
| 528 | data: dict[str, Any], |
| 529 | ) -> CollectReport | TestReport | None: |
| 530 | if "$report_type" in data: |
| 531 | if data["$report_type"] == "TestReport": |
| 532 | return TestReport._from_json(data) |
| 533 | elif data["$report_type"] == "CollectReport": |
| 534 | return CollectReport._from_json(data) |
| 535 | assert False, "Unknown report_type unserialize data: {}".format( |
| 536 | data["$report_type"] |
| 537 | ) |
| 538 | return None |
| 539 | |
| 540 | |
| 541 | def _report_to_json(report: BaseReport) -> dict[str, Any]: |
nothing calls this directly
no test coverage detected