Tests that the capture display hook conforms to the CapturedIO output format
()
| 108 | |
| 109 | |
| 110 | def 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…