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

Add more projection-specific tests #1139

Merged
merged 6 commits into from
Oct 2, 2018
Merged

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Oct 1, 2018

Rationale

In working on #1124, I was confused that other projections were not failing due to proj4 changes. It turns out that this is because some projections simply don't have tests, so never exercised the path through proj4 I thought would fail.

Implications

I added tests for everything from the Snyder 1987 manual (with #1138). There are also some new general smoke tests that other newer projections have. I also re-factored some of the proj4-string checking to use a common function comparing with sets (these provide more informative diffs when there's something wrong.)

This will make it easier to handle common changes if necessary, based on
proj version or other factors.
This produces nicer error output with pytest as it can show the diff in
a more fine-grained manner.
Copy link
Contributor

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Anything that makes it harder for us to break stuff and harder for tests to fail spuriously is 💯 from me.

@dopplershift dopplershift merged commit 9c8ee16 into SciTools:master Oct 2, 2018
@QuLogic QuLogic deleted the more-tests branch October 3, 2018 00:44
@dopplershift dopplershift added this to the 0.17 milestone Nov 6, 2018
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.

None yet

2 participants