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

Function test_valid_png_size

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

Source from the content-addressed store, hash-verified

60
61
62def test_valid_png_size(m_png):
63 from folium.utilities import _parse_size
64
65 w = h = 500
66 m_png.width = _parse_size(w)
67 m_png.height = _parse_size(h)
68 png = m_png._repr_png_()
69 img = PIL.Image.open(io.BytesIO(png))
70 assert img.size == (w, h)

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…