MCPcopy Index your code
hub / github.com/python-visualization/folium / test_include_once

Function test_include_once

tests/test_map.py:199–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_include_once():
200 abc = "MY BEAUTIFUL SENTINEL"
201 TileLayer.include(abc=abc)
202 tiles = TileLayer(
203 tiles="OpenStreetMap",
204 )
205 m = Map(
206 tiles=tiles,
207 )
208 TileLayer(
209 tiles="OpenStreetMap",
210 ).add_to(m)
211
212 rendered = m.get_root().render()
213 Class._includes.clear()
214
215 assert rendered.count(abc) == 1, "Includes should happen only once per class"
216
217
218def test_popup_backticks():

Callers

nothing calls this directly

Calls 5

TileLayerClass · 0.90
MapClass · 0.90
includeMethod · 0.80
add_toMethod · 0.80
renderMethod · 0.45

Tested by

no test coverage detected