()
| 1503 | |
| 1504 | |
| 1505 | def test_repr_png(): |
| 1506 | cmap = mpl.colormaps['viridis'] |
| 1507 | png = cmap._repr_png_() |
| 1508 | assert len(png) > 0 |
| 1509 | img = Image.open(BytesIO(png)) |
| 1510 | assert img.width > 0 |
| 1511 | assert img.height > 0 |
| 1512 | assert 'Title' in img.text |
| 1513 | assert 'Description' in img.text |
| 1514 | assert 'Author' in img.text |
| 1515 | assert 'Software' in img.text |
| 1516 | |
| 1517 | |
| 1518 | def test_repr_html(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…