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

Function test_figure_html

tests/test_features.py:60–68  ·  view source on GitHub ↗
(tmpl)

Source from the content-addressed store, hash-verified

58
59
60def test_figure_html(tmpl):
61 f = folium.Figure()
62 out = f.render()
63 out = os.linesep.join([s.strip() for s in out.splitlines() if s.strip()])
64 tmpl = os.linesep.join([s.strip() for s in tmpl.splitlines() if s.strip()])
65 assert out == tmpl, "\n" + out + "\n" + "-" * 80 + "\n" + tmpl
66
67 bounds = f.get_bounds()
68 assert bounds == [[None, None], [None, None]], bounds
69
70
71def test_figure_double_rendering():

Callers

nothing calls this directly

Calls 2

get_boundsMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…