MCPcopy Create free account
hub / github.com/python-visualization/folium / test_valid_png

Function test_valid_png

tests/test_repr.py:56–59  ·  view source on GitHub ↗
(m_png)

Source from the content-addressed store, hash-verified

54
55
56def test_valid_png(m_png):
57 png = m_png._repr_png_()
58 img = PIL.Image.open(io.BytesIO(png))
59 assert isinstance(img, PIL.PngImagePlugin.PngImageFile)
60
61
62def test_valid_png_size(m_png):

Callers

nothing calls this directly

Calls 1

_repr_png_Method · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…