()
| 1516 | |
| 1517 | |
| 1518 | def 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 | |
| 1529 | def test_get_under_over_bad(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…