MCPcopy
hub / github.com/python-visualization/folium / test_marker_popups

Function test_marker_popups

tests/test_features.py:81–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def test_marker_popups():
82 m = Map()
83 folium.Marker([45, -180], popup="-180").add_to(m)
84 folium.Marker([45, -120], popup=Popup("-120")).add_to(m)
85 folium.RegularPolygonMarker([45, -60], popup="-60").add_to(m)
86 folium.RegularPolygonMarker([45, 0], popup=Popup("0")).add_to(m)
87 folium.CircleMarker([45, 60], popup="60").add_to(m)
88 folium.CircleMarker([45, 120], popup=Popup("120")).add_to(m)
89 folium.CircleMarker([45, 90], popup=Popup("90"), weight=0).add_to(m)
90 m._repr_html_()
91
92 bounds = m.get_bounds()
93 assert bounds == [[45, -180], [45, 120]], bounds
94
95
96# DivIcon.

Callers

nothing calls this directly

Calls 5

_repr_html_Method · 0.95
MapClass · 0.90
PopupClass · 0.90
add_toMethod · 0.80
get_boundsMethod · 0.80

Tested by

no test coverage detected