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

Function test_fontentry_dataclass

lib/matplotlib/tests/test_font_manager.py:372–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370
371
372def 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
384def test_fontentry_dataclass_invalid_path():

Callers

nothing calls this directly

Calls 4

_repr_png_Method · 0.95
_repr_html_Method · 0.95
FontEntryClass · 0.90
openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…