Aggregator class for all of the obs_* test classes.
Inherit from this class, then lsst.utils.tests.TestCase, in that order.
Example subclass::
class TestObsExample(lsst.obs.base.tests.ObsTests, lsst.utils.tests.TestCase):
def setUp(self):
self.setUp_tests(...)
self.setUp_butler_get(...)
self.setUp_mapper(...)
self.setUp_camera(...)
Definition at line 38 of file tests.py.
def lsst.obs.base.tests.ObsTests.setUp_tests |
( |
|
self, |
|
|
|
butler, |
|
|
|
mapper, |
|
|
|
dataIds |
|
) |
| |
Set up the necessary shared variables used by multiple tests.
Parameters
----------
butler: lsst.daf.persistence.Butler
A butler object, instantiated on the testdata repository for the
obs package being tested.
mapper: lsst.obs.CameraMapper
A CameraMapper object for your camera, instantiated on the testdata
repository the obs package being tested.
dataIds: dict
dictionary of (exposure name): (dataId of that exposure in the
testdata repository), with unittest.SkipTest as the value for any
exposures you do not have/do not want to test. It must contain a
valid 'raw' dataId, in addition to 'bias','flat','dark', which may
be set to SkipTest. For example::
self.dataIds = {'raw': {'visit': 1, 'filter': 'g'},
'bias': {'visit': 1},
'flat': {'visit': 1},
'dark': unittest.SkipTest
}
Definition at line 54 of file tests.py.