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 box(en)plot colour tests #2693

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Nov 4, 2021

As was noted in #2663 (comment), the test_box_colors tests are broken because zip only iterates to the shortest input.

For boxplot, there are in fact 3 copies of the palette not 2 for the second test.

For boxenplot, it doesn't add Patch at all but PatchCollection, as can be seen in the related tests.

As was noted in
mwaskom#2663 (comment),
the `test_box_colors` tests are broken because `zip` only iterates to
the shortest input.

For boxplot, there are in fact 3 copies of the palette not 2.

For boxenplot, it doesn't add `Patch` at all but `PatchCollection`, as
can be seen in the related tests.
@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #2693 (7fa9a37) into master (b13dfdb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2693   +/-   ##
=======================================
  Coverage   97.53%   97.53%           
=======================================
  Files          17       17           
  Lines        6439     6439           
=======================================
  Hits         6280     6280           
  Misses        159      159           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b13dfdb...7fa9a37. Read the comment docs.

@mwaskom
Copy link
Owner

mwaskom commented Nov 26, 2021

Thanks @QuLogic, I think I determined that the short-circuit zip was actually intentional, or fine at least, since it was excluding the artists that get added to support the legend. But this makes it more clean.

@mwaskom mwaskom merged commit d4aa367 into mwaskom:master Nov 26, 2021
@QuLogic QuLogic deleted the avoid-test-zip branch November 27, 2021 00:29
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.

2 participants