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

Function test_custom_tile_subdomains

tests/test_raster_layers.py:43–51  ·  view source on GitHub ↗

Test custom tile subdomains.

()

Source from the content-addressed store, hash-verified

41
42
43def test_custom_tile_subdomains():
44 """Test custom tile subdomains."""
45 url = "http://{s}.custom_tiles.org/{z}/{x}/{y}.png"
46 m = folium.Map()
47 folium.TileLayer(
48 tiles=url, name="subdomains2", attr="attribution", subdomains="mytilesubdomain"
49 ).add_to(m)
50 out = m._parent.render()
51 assert "mytilesubdomain" in out
52
53
54def test_wms():

Callers

nothing calls this directly

Calls 2

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…