-
Notifications
You must be signed in to change notification settings - Fork 334
Fix test failure: KeyError: 'textColor' #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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') | ||
| if text_color is not None: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
|
||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.