MCPcopy Create free account
hub / github.com/pytest-dev/pytest-bdd / dump_obj

Function dump_obj

src/pytest_bdd/utils.py:59–64  ·  view source on GitHub ↗

Dump objects to stdout so that they can be inspected by the test suite.

(*objects: Any)

Source from the content-addressed store, hash-verified

57
58
59def dump_obj(*objects: Any) -> None:
60 """Dump objects to stdout so that they can be inspected by the test suite."""
61 for obj in objects:
62 dump = pickle.dumps(obj, protocol=pickle.HIGHEST_PROTOCOL)
63 encoded = base64.b64encode(dump).decode("ascii")
64 print(f"{_DUMP_START}{encoded}{_DUMP_END}")
65
66
67def collect_dumped_objects(result: RunResult) -> list:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…