Skip to content

Commit a15787d

Browse files
Conengmoocefpaf
authored andcommitted
add test
1 parent 4b1ea04 commit a15787d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_features.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,24 @@ def _assert_id_got_added(data):
314314
geojson.convert_to_feature_collection()
315315
assert geojson.find_identifier() == 'feature.id'
316316
assert geojson.data['features'][0]['id'] == '0'
317+
318+
319+
def test_geometry_collection_get_bounds():
320+
"""Assert #1599 is fixed"""
321+
geojson_data = {
322+
"geometries": [
323+
{
324+
"coordinates": [
325+
[
326+
[-1, 1],
327+
[0, 2],
328+
[-3, 4],
329+
[2, 0],
330+
]
331+
],
332+
"type": "Polygon",
333+
},
334+
],
335+
"type": "GeometryCollection",
336+
}
337+
assert folium.GeoJson(geojson_data).get_bounds() == [[0, -3], [4, 2]]

0 commit comments

Comments
 (0)