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-7235: Pytest updates #72

Merged
merged 6 commits into from
Aug 16, 2016
Merged

DM-7235: Pytest updates #72

merged 6 commits into from
Aug 16, 2016

Conversation

AstroVPK
Copy link
Contributor

No description provided.

@timj timj changed the title Tickets/dm 7235 DM-7235: Pytest updates Aug 15, 2016
utilsTests.run(suite())
class MatchMemoryTestCase(lsst.utils.tests.MemoryTestCase):
pass

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a desire to homogenize the name of the memory test class? I see three different ones here (none of which are TestMemory as suggested in @timj's slides & the DM Developer Guide).

Copy link
Member

@timj timj Aug 16, 2016

Choose a reason for hiding this comment

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

The name doesn't matter. I have no opinion on whether it should be standardized.

@laurenam
Copy link
Contributor

With the caveat that I am currently unable to actually pull this down & run it myself, this all looks fine, but please consider the following:

  • renaming all test files names to begin with "test" (e.g. config.py --> testConfig.py)
  • the commit history could be significantly shortened by squashing the simple & common fixes to multiple files (especially when the file name was not included in the commit message & the commit messages refer to a tests/testTask.py file when only one file was changed).

AstroVPK and others added 6 commits August 16, 2016 16:17
This commit updates some of the tests to use the py.test framework.
This includes checking for bad uses of assert_, assertEquals, and
assertTrue, the lsstUtils alias, as well as cleaning up the test code
with autopep8 to comply with the LSST PEP8 standard.
This required extensive modifications so that the data creation
happens only once.
A few of the tests in pipe_tasks have non-standard names i.e. names
that do not begin with test. This commit renames those tests by
adding 'test' in front of the old name and capitalizing the former
first character.
@AstroVPK AstroVPK merged commit b7d3ea9 into master Aug 16, 2016
@ktlim ktlim deleted the tickets/DM-7235 branch August 25, 2018 06:46
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

4 participants