test RichOutput basics
()
| 74 | yield nt.assert_equal, getattr(rich, method)(), None |
| 75 | |
| 76 | def test_rich_output(): |
| 77 | """test RichOutput basics""" |
| 78 | data = basic_data |
| 79 | metadata = basic_metadata |
| 80 | rich = capture.RichOutput(data=data, metadata=metadata) |
| 81 | yield nt.assert_equal, rich._repr_html_(), data['text/html'] |
| 82 | yield nt.assert_equal, rich._repr_png_(), (data['image/png'], metadata['image/png']) |
| 83 | yield nt.assert_equal, rich._repr_latex_(), None |
| 84 | yield nt.assert_equal, rich._repr_javascript_(), None |
| 85 | yield nt.assert_equal, rich._repr_svg_(), None |
| 86 | |
| 87 | def test_rich_output_no_metadata(): |
| 88 | """test RichOutput with no metadata""" |
nothing calls this directly
no test coverage detected