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

Function test_geoman

tests/plugins/test_geoman.py:13–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def test_geoman():
14 m = folium.Map([47, 3], zoom_start=1)
15 fs = plugins.GeoMan().add_to(m)
16
17 out = normalize(m._parent.render())
18
19 # verify that the GeoMan plugin was added to
20 # the map
21 tmpl = Template(
22 """
23 {{this.get_name()}}.addControls(
24 {{this.options|tojavascript}}
25 )
26 """
27 )
28
29 assert normalize(tmpl.render(this=fs)) in out

Callers

nothing calls this directly

Calls 4

normalizeFunction · 0.90
TemplateClass · 0.90
add_toMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…