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

Method _to_json

src/_pytest/subtests.py:99–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 return " ".join(parts) or "(<subtest>)"
98
99 def _to_json(self) -> dict[str, Any]:
100 data = super()._to_json()
101 del data["context"]
102 data["_report_type"] = "SubTestReport"
103 data["_subtest.context"] = self.context._to_json()
104 return data
105
106 @classmethod
107 def _from_json(cls, reportdict: dict[str, Any]) -> SubtestReport:

Callers 2

_newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected