MCPcopy Create free account
hub / github.com/ipython/ipython / test_rich_output_metadata

Function test_rich_output_metadata

IPython/utils/tests/test_capture.py:94–100  ·  view source on GitHub ↗

test RichOutput with metadata

()

Source from the content-addressed store, hash-verified

92 yield nt.assert_equal, getattr(rich, method)(), data[mime]
93
94def test_rich_output_metadata():
95 """test RichOutput with metadata"""
96 data = full_data
97 metadata = full_metadata
98 rich = capture.RichOutput(data=data, metadata=metadata)
99 for method, mime in _mime_map.items():
100 yield nt.assert_equal, getattr(rich, method)(), (data[mime], metadata[mime])
101
102def test_rich_output_display():
103 """test RichOutput.display

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected