From 25ac6d9797c8631c97d743c1f302a849f5471a70 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 23 Aug 2017 18:27:57 -0300 Subject: [PATCH 1/2] update changelog --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.txt b/CHANGES.txt index 894157a1fb..50697fb131 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ 0.4.0 ~~~~~ +- Changed default `max_bounds` to `False` to reflect leaflet's default value (rdd9999 #641) - Added `MeasureControl` (ocefpaf #669) - Added `VideoOverlay` plugin (ocefpaf #665) - Added `TimestampedWmsTileLayers` plugin (acrosby #644 and #660) From 762c01ed2d1a2ac1d48efa739cddd5912566c222 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 23 Aug 2017 18:28:05 -0300 Subject: [PATCH 2/2] fix tests --- tests/test_folium.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/test_folium.py b/tests/test_folium.py index c9f8f7ea03..193fa39e93 100644 --- a/tests/test_folium.py +++ b/tests/test_folium.py @@ -70,8 +70,14 @@ def setup(self): """Setup Folium Map.""" with mock.patch('branca.element.uuid4') as uuid4: uuid4().hex = '0' * 32 - self.m = folium.Map(location=[45.5236, -122.6750], width=900, - height=400, max_zoom=20, zoom_start=4) + self.m = folium.Map( + location=[45.5236, -122.6750], + width=900, + height=400, + max_zoom=20, + zoom_start=4, + max_bounds=True + ) self.env = Environment(loader=PackageLoader('folium', 'templates')) def test_init(self): @@ -357,6 +363,7 @@ def test_map_build(self): 'lat': 45.5236, 'lon': -122.675, 'size': 'width: 900.0px; height: 400.0px;', 'zoom_level': 4, + 'max_bounds': True, 'min_lat': -90, 'max_lat': 90, 'min_lon': -180,