MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_repr_html

Function test_repr_html

lib/matplotlib/tests/test_colors.py:1518–1526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1516
1517
1518def test_repr_html():
1519 cmap = mpl.colormaps['viridis']
1520 html = cmap._repr_html_()
1521 assert len(html) > 0
1522 png = cmap._repr_png_()
1523 assert base64.b64encode(png).decode('ascii') in html
1524 assert cmap.name in html
1525 assert html.startswith('<div')
1526 assert html.endswith('</div>')
1527
1528
1529def test_get_under_over_bad():

Callers

nothing calls this directly

Calls 2

_repr_html_Method · 0.45
_repr_png_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…