Test custom maptiles.
(self, tiles, provider)
| 122 | ], |
| 123 | ) |
| 124 | def test_builtin_tile(self, tiles, provider): |
| 125 | """Test custom maptiles.""" |
| 126 | |
| 127 | m = folium.Map(location=[45.5236, -122.6750], tiles=tiles) |
| 128 | tiles = "".join(tiles.lower().strip().split()) |
| 129 | url = provider.build_url(fill_subdomain=False, scale_factor="{r}") |
| 130 | attr = provider.html_attribution |
| 131 | |
| 132 | assert m._children[tiles.replace("_", "")].tiles == url |
| 133 | assert htmlsafe_json_dumps(attr) in m._parent.render() |
| 134 | |
| 135 | bounds = m.get_bounds() |
| 136 | assert bounds == [[None, None], [None, None]], bounds |
| 137 | |
| 138 | def test_custom_tile(self): |
| 139 | """Test custom tile URLs.""" |
nothing calls this directly
no test coverage detected