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

Function test_geometry_collection_get_bounds

tests/test_features.py:305–323  ·  view source on GitHub ↗

Assert #1599 is fixed

()

Source from the content-addressed store, hash-verified

303
304
305def test_geometry_collection_get_bounds():
306 """Assert #1599 is fixed"""
307 geojson_data = {
308 "geometries": [
309 {
310 "coordinates": [
311 [
312 [-1, 1],
313 [0, 2],
314 [-3, 4],
315 [2, 0],
316 ]
317 ],
318 "type": "Polygon",
319 },
320 ],
321 "type": "GeometryCollection",
322 }
323 assert folium.GeoJson(geojson_data).get_bounds() == [[0, -3], [4, 2]]
324
325
326def test_choropleth_get_by_key():

Callers

nothing calls this directly

Calls 1

get_boundsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…