Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/test_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ def test_marker_copy():
def test_background_color_condition_white():
# Test the condition when the background color is white (all 'f' in the hex code)
marker = ds.Marker(0, 0, color='#ffffff')
assert marker._folium_kwargs['icon'].options['textColor'], 'gray'
icon_options = marker._folium_kwargs['icon'].options
text_color = icon_options.get('textColor') or icon_options.get('icon_color')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be iconColor instead of icon_color?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ll take another look and confirm.

if text_color is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this test should either assert that text_color is 'gray', or assert that it is None, and be specific about which is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out, I’ll look into it.

assert text_color == 'gray'
else:
pass

def test_background_color_condition_not_white():
# Test the condition when the background color is not white
Expand Down
Loading