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-7358: Pytest updates #29

Merged
merged 2 commits into from Aug 24, 2016
Merged

DM-7358: Pytest updates #29

merged 2 commits into from Aug 24, 2016

Conversation

timj
Copy link
Member

@timj timj commented Aug 24, 2016

No description provided.

All the tests in meas_modelfit have been formatted with autopep8 to be
compliant with the LSST PEP8 standard.
class MixtureTestCase(lsst.utils.tests.TestCase):

@staticmethod
def makeRandomMixture(nDim, nComponents, df=float("inf")):
numpy.random.seed(500)
Copy link
Member Author

Choose a reason for hiding this comment

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

I think it would be better to put this line in a setUp method rather than duplicate it in each test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done...

All the tests in meas_modelfit have been modernized and made runnable
under the py.test framework. Deprecated usage of assert_,
assertEquals, etc... has been replaced with the appropriate modern
equivalents. The random number seed setters have been moved inside
the setUp method.
@AstroVPK AstroVPK merged commit 479fe95 into master Aug 24, 2016
@ktlim ktlim deleted the tickets/DM-7358 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
2 participants