()
| 370 | |
| 371 | |
| 372 | def test_fontentry_dataclass(): |
| 373 | fontent = FontEntry(name='font-name') |
| 374 | |
| 375 | png = fontent._repr_png_() |
| 376 | img = Image.open(BytesIO(png)) |
| 377 | assert img.width > 0 |
| 378 | assert img.height > 0 |
| 379 | |
| 380 | html = fontent._repr_html_() |
| 381 | assert html.startswith("<img src=\"data:image/png;base64") |
| 382 | |
| 383 | |
| 384 | def test_fontentry_dataclass_invalid_path(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…