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-7384: Updates for pytest #19

Merged
merged 6 commits into from Aug 25, 2016
Merged

DM-7384: Updates for pytest #19

merged 6 commits into from Aug 25, 2016

Conversation

timj
Copy link
Member

@timj timj commented Aug 25, 2016

No description provided.

Standard restructuing of MemoryTester, setup_module and if __name__
as detailed in sqr-012.lsst.io
Previously these DB connection tests were being skipped by scons.
The commit uses a setUp method to allow for the exception
to be raised and the test formally "Skipped" under py.test
instead of the falsely "Passed" that is reported by the previous test runner.
Standardizes the information in the raised error message
by testSelectFluxMag0 and testSelectLsstImages when the DBAuth fails.
"""Initialize the DB connection. Raise SkipTest if unable to access DB."""
config = SpatialScaleZeroPointTask.ConfigClass()
config.selectFluxMag0.retarget(SelectLsstSimFluxMag0Task)
print config
Copy link
Member Author

Choose a reason for hiding this comment

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

Why is this being printed? Also, print_function to be compliant with the style guide.

No longer catches the very general Exception.
@wmwv wmwv merged commit 808f0b0 into master Aug 25, 2016
@ktlim ktlim deleted the tickets/DM-7384 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

2 participants