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

DM-4813: Skip obs_cfht butler mapper test if datadir isn't found. #9

Merged
merged 4 commits into from Jan 18, 2016

Conversation

wmwv
Copy link
Contributor

@wmwv wmwv commented Jan 17, 2016

Skip tests in Butler mapper test suite by raising unittest.SkipTest if testdata_cfht isn't set up.

This then skips the full set of butler+mapping tests in that testing suite.

The availability of testdata_cfht is tested with utils.getPackageDir.

wmwv and others added 4 commits January 16, 2016 17:04
The correct answer is to explicitly skip the tests rather than
just returning (implicitly None) from each function.
Use utils.getPackageDir to obtain package path for `testdata_cfht`
If it's not there, raise unittest.SkipTest
This will cause the tests in the CFHT Butler test suite to be skipped.
@wmwv wmwv merged commit 1a78f67 into master Jan 18, 2016
@ktlim ktlim deleted the tickets/DM-4813 branch August 25, 2018 05:50
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

1 participant