@@ -245,7 +245,7 @@ def test_rectangle_marker(self):
245
245
rect_templ = self .env .get_template ('rectangle_marker.js' )
246
246
247
247
# Single Rectangle marker.
248
- bounds = [45.60 , - 122.8 , 45.61 , - 122.7 ]
248
+ bounds = [45.60 , - 122.8 , 45.61 , - 122.7 ]
249
249
self .map .add_child (folium .RectangleMarker (bounds = bounds , popup = 'Hi' ))
250
250
marker = list (self .map ._children .values ())[- 1 ]
251
251
rect_1 = rect_templ .render ({'RectangleMarker' : marker .get_name (),
@@ -258,7 +258,7 @@ def test_rectangle_marker(self):
258
258
'' .join (self .map .get_root ().render ().split ()))
259
259
260
260
# Second Rectangle marker.
261
- bounds = [45.70 , - 122.9 , 45.75 , - 122.5 ]
261
+ bounds = [45.70 , - 122.9 , 45.75 , - 122.5 ]
262
262
self .map .add_child (folium .RectangleMarker (bounds = bounds , popup = 'Hi' ))
263
263
marker = list (self .map ._children .values ())[- 1 ]
264
264
rect_2 = rect_templ .render ({'RectangleMarker' : marker .get_name (),
@@ -291,11 +291,11 @@ def test_polygon(self):
291
291
self .map .add_child (folium .Polygon (locations = locations , popup = 'Hi' ))
292
292
marker = list (self .map ._children .values ())[- 1 ]
293
293
polygon_1 = polygon_templ .render ({'Polygon' : marker .get_name (),
294
- 'location' : locations ,
295
- 'color' : 'black' ,
296
- 'fill_color' : 'black' ,
297
- 'fill_opacity' : 0.6 ,
298
- 'weight' : 1 })
294
+ 'location' : locations ,
295
+ 'color' : 'black' ,
296
+ 'fill_color' : 'black' ,
297
+ 'fill_opacity' : 0.6 ,
298
+ 'weight' : 1 })
299
299
assert ('' .join (polygon_1 .split ())[:- 1 ] in
300
300
'' .join (self .map .get_root ().render ().split ()))
301
301
@@ -309,7 +309,7 @@ def test_polygon(self):
309
309
[35.5682 , 138.7588 ],
310
310
[35.5663 , 138.7627 ]]
311
311
self .map .add_child (folium .Polygon (locations = locations , color = 'red' ,
312
- fill_color = 'red' , fill_opacity = 0.7 ,
312
+ fill_color = 'red' , fill_opacity = 0.7 ,
313
313
weight = 3 , popup = 'Hi' ))
314
314
marker = list (self .map ._children .values ())[- 1 ]
315
315
polygon_2 = polygon_templ .render ({'Polygon' : marker .get_name (),
@@ -325,7 +325,6 @@ def test_polygon(self):
325
325
assert bounds == [[[35.5636 , 138.7634 ], [35.5629 , 138.7664 ]],
326
326
[[35.6636 , 139.7634 ], [35.6629 , 139.7664 ]]], bounds
327
327
328
-
329
328
def test_poly_marker (self ):
330
329
"""Test polygon marker."""
331
330
0 commit comments