MCPcopy Index your code
hub / github.com/ipython/ipython / test_capture_display_hook_format

Function test_capture_display_hook_format

tests/test_displayhook.py:110–116  ·  view source on GitHub ↗

Tests that the capture display hook conforms to the CapturedIO output format

()

Source from the content-addressed store, hash-verified

108
109
110def test_capture_display_hook_format():
111 """Tests that the capture display hook conforms to the CapturedIO output format"""
112 hook = CapturingDisplayHook(ip)
113 hook({"foo": "bar"})
114 captured = CapturedIO(sys.stdout, sys.stderr, hook.outputs)
115 # Should not raise with RichOutput transformation error
116 captured.outputs

Callers

nothing calls this directly

Calls 2

CapturedIOClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…