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

Method _to_json

src/_pytest/reports.py:221–229  ·  view source on GitHub ↗

Return the contents of this report as a dict of builtin entries, suitable for serialization. This was originally the serialize_report() function from xdist (ca03269). Experimental method.

(self)

Source from the content-addressed store, hash-verified

219 )
220
221 def _to_json(self) -> dict[str, Any]:
222 """Return the contents of this report as a dict of builtin entries,
223 suitable for serialization.
224
225 This was originally the serialize_report() function from xdist (ca03269).
226
227 Experimental method.
228 """
229 return _report_to_json(self)
230
231 @classmethod
232 def _from_json(cls, reportdict: dict[str, object]) -> Self:

Calls 1

_report_to_jsonFunction · 0.85