Skip to content

Commit

Permalink
Update tests to reflect new names and comply with flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Nov 5, 2018
1 parent 83dd95c commit 976477e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_cp_pipe.py → tests/test_runEotestTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,23 @@
noEotest = True


class CpPipeTestCase(lsst.utils.tests.TestCase):
class RunEotestTaskTestCase(lsst.utils.tests.TestCase):
"""A test case for cp_pipe."""

def testExample(self):
pass

@unittest.skipIf(noEotest, noEotestMsg)
def testImport(self):
import lsst.cp.pipe as cpPipe
import lsst.cp.pipe as cpPipe # noqa: F401

@unittest.skipIf(noEotest, noEotestMsg)
def testClassInstantiation(self):
from lsst.cp.pipe import CpTask
cpConfig = CpTask.ConfigClass()
cpConfig.eotestOutputPath='/some/test/path' # must not be empty for validate() to pass
cpTask = CpTask(config=cpConfig)
from lsst.cp.pipe.runEotestTask import RunEotestTask
runEotestConfig = RunEotestTask.ConfigClass()
runEotestConfig.eotestOutputPath = '/some/test/path' # must not be empty for validate() to pass
runEotestTask = RunEotestTask(config=runEotestConfig)
del runEotestTask


class TestMemory(lsst.utils.tests.MemoryTestCase):
Expand All @@ -64,6 +65,7 @@ class TestMemory(lsst.utils.tests.MemoryTestCase):
def setup_module(module):
lsst.utils.tests.init()


if __name__ == "__main__":
lsst.utils.tests.init()
unittest.main()

0 comments on commit 976477e

Please sign in to comment.