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

Function test_custom_pane_show

tests/test_map.py:264–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262
263
264def test_custom_pane_show():
265 m = Map()
266 pane = CustomPane("test-name", z_index=625, pointer_events=False).add_to(m)
267 rendered = pane._template.module.script(this=pane, kwargs={})
268 expected = f"""
269 var {pane.get_name()} = {m.get_name()}.createPane("test-name");
270 {pane.get_name()}.style.zIndex = 625;
271 {pane.get_name()}.style.pointerEvents = 'none';
272 """
273 assert normalize(rendered) == normalize(expected)
274
275
276def test_marker_valid_location():

Callers

nothing calls this directly

Calls 4

MapClass · 0.90
CustomPaneClass · 0.90
normalizeFunction · 0.90
add_toMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…