Skip to content

Conversation

@pganssle
Copy link
Member

@pganssle pganssle commented Feb 24, 2019

The biggest problem with the coverage was that we could not test GridSpec objects, so I have created a small mock that allows us to ensure the right grid specs are created.

This brings the code coverage up to 98%. The only remaining untested lines are never hit by the "main" functions, and I am somewhat reluctant to directly test stripe_even and stripe_odd, because I'm not entirely sure why I made them public.

These were some of the edge cases handled in arranging the grids.
Rather than attempting to actually plot these grids and match against an
image or an SVG, we can instead mock out GridStrategy and ensure that
the correct arrangement of grids is returned.
Because all the calls in this test were expected to raise an error,
after the first one, none of the others were even tried. This makes each
failing call a separate test.
@pganssle pganssle merged commit 3b77808 into matplotlib:master Feb 24, 2019
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.

1 participant