Skip to content
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

Fix test failures with latest branca #1556

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

oefe
Copy link
Contributor

@oefe oefe commented Dec 28, 2021

Bianca removed uuid4 recently for performance reasons.

Rather than trying to mock what branch is using now to generate IDs, I think it's better not to mock id generation at all. This required a few changes on how to test the result of to_dict.

I wonder, though, wether we really should compare for equality. This will break again whenever branca adds new values to the dict, or changes internals. Maybe it would be better to just assert on specific keys that we are interested in, or not check to_dict at all?

@ocefpaf
Copy link
Member

ocefpaf commented Dec 29, 2021

LGTM but I would I'll leave this here for @Conengmo to take a second look. He has been the main folium maintainer for a while now and know way more than I do about the current tests.

@Conengmo Conengmo merged commit b410ab2 into python-visualization:main Jan 4, 2022
@Conengmo
Copy link
Member

Conengmo commented Jan 4, 2022

Thanks @oefe for the fix!

@oefe oefe deleted the fix_branca_compatibility branch January 5, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants