Skip to content

Commit e6d2c5b

Browse files
adnanhemaniConengmo
authored andcommitted
fixing incorrect user warning in Icon (#1171)
1 parent f16fe2a commit e6d2c5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

folium/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Icon(MacroElement):
211211
'green', 'darkgreen', 'lightgreen',
212212
'blue', 'darkblue', 'cadetblue', 'lightblue',
213213
'purple', 'darkpurple', 'pink',
214-
'white', 'gray', 'lightgray' 'black'}
214+
'white', 'gray', 'lightgray', 'black'}
215215

216216
def __init__(self, color='blue', icon_color='white', icon='info-sign',
217217
angle=0, prefix='glyphicon', **kwargs):

tests/test_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def test_popup_show():
9292

9393

9494
def test_icon_valid_marker_colors():
95+
assert len(Icon.color_options) == 19
9596
with pytest.warns(None) as record:
9697
for color in Icon.color_options:
9798
Icon(color=color)

0 commit comments

Comments
 (0)