Skip to content

Commit e0ecfcb

Browse files
authored
Merge pull request #670 from ocefpaf/fix_test_and_update_changelog
Fix test from #641...
2 parents 68686e8 + 762c01e commit e0ecfcb

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
0.4.0
22
~~~~~
3+
- Changed default `max_bounds` to `False` to reflect leaflet's default value (rdd9999 #641)
34
- Added `MeasureControl` (ocefpaf #669)
45
- Added `VideoOverlay` plugin (ocefpaf #665)
56
- Added `TimestampedWmsTileLayers` plugin (acrosby #644 and #660)

tests/test_folium.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@ def setup(self):
7070
"""Setup Folium Map."""
7171
with mock.patch('branca.element.uuid4') as uuid4:
7272
uuid4().hex = '0' * 32
73-
self.m = folium.Map(location=[45.5236, -122.6750], width=900,
74-
height=400, max_zoom=20, zoom_start=4)
73+
self.m = folium.Map(
74+
location=[45.5236, -122.6750],
75+
width=900,
76+
height=400,
77+
max_zoom=20,
78+
zoom_start=4,
79+
max_bounds=True
80+
)
7581
self.env = Environment(loader=PackageLoader('folium', 'templates'))
7682

7783
def test_init(self):
@@ -357,6 +363,7 @@ def test_map_build(self):
357363
'lat': 45.5236, 'lon': -122.675,
358364
'size': 'width: 900.0px; height: 400.0px;',
359365
'zoom_level': 4,
366+
'max_bounds': True,
360367
'min_lat': -90,
361368
'max_lat': 90,
362369
'min_lon': -180,

0 commit comments

Comments
 (0)