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-7347: Pytest updates #10

Merged
merged 2 commits into from Aug 23, 2016
Merged

DM-7347: Pytest updates #10

merged 2 commits into from Aug 23, 2016

Conversation

timj
Copy link
Member

@timj timj commented Aug 23, 2016

No description provided.

Tests that had been named in conflict with teh test naming convention
have been renamed to be in compliance. The gitignore has been updated
to ignore the doc/xml folder.
The tests in meas_deblender have been modernized to be runnable under
the py.test framework and have been autoformatted using autopep8 to
be compliant with the LSST PEP8 framework. All usage of depracted
assertions has been updated.
import pylab as plt
import os.path
plotpat = os.path.join(os.path.dirname(__file__), 'edge%i.png')
print 'Writing plots to', plotpat
Copy link
Member Author

Choose a reason for hiding this comment

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

It's not entirely clear how to handle these lines (and the similar lines in the other file). I guess we leave it as is for now until we can work out how doPlot ever becomes true when we are running in py.test. We could put this code in a setupClass method and trigger with an environment variable but ignore it for now. Please file a ticket for revisiting the plotting in the test code in meas_deblender. I think that's what @jdswinbank would prefer.

@AstroVPK AstroVPK merged commit 8113c2a into master Aug 23, 2016
@ktlim ktlim deleted the tickets/DM-7347 branch August 25, 2018 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants