()
| 11 | |
| 12 | |
| 13 | def test_vectorgrid(): |
| 14 | m = folium.Map(location=(30, 20), zoom_start=4) |
| 15 | url = "https://free-{s}.tilehosting.com/data/v3/{z}/{x}/{y}.pbf?token={token}" |
| 16 | vc = VectorGridProtobuf(url, "test").add_to(m) |
| 17 | out = normalize(m._parent.render()) |
| 18 | |
| 19 | expected = normalize(VectorGridProtobuf._template.render(this=vc)) |
| 20 | assert expected in out |
| 21 | |
| 22 | script = f'<script src="{VectorGridProtobuf.default_js[0][1]}"></script>' |
| 23 | assert script in out |
| 24 | assert url in out |
| 25 | assert "L.vectorGrid.protobuf" in out |
| 26 | |
| 27 | |
| 28 | def test_vectorgrid_str_options(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…