Skip to content

Commit

Permalink
Add test for forceRemake option
Browse files Browse the repository at this point in the history
This also significantly improves the test coverage
as now the actual task will always run instead of it usually
just loading a pre-made image from the whatever the underlying
repo is.
  • Loading branch information
mfisherlevine committed Oct 21, 2022
1 parent 8c45b24 commit 9b240ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_bestEffortIsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,14 @@ def setUpClass(cls):
cls.dataId = {'day_obs': 20210121, 'seq_num': 743, 'detector': 0}

def test_getExposure(self):
# in most locations this will load a pre-made image
exp = self.bestEffortIsr.getExposure(self.dataId)
self.assertIsInstance(exp, afwImage.Exposure)

# this will always actually run isr with whatever calibs are available
exp = self.bestEffortIsr.getExposure(self.dataId, forceRemake=True)
self.assertIsInstance(exp, afwImage.Exposure)


class TestMemory(lsst.utils.tests.MemoryTestCase):
pass
Expand Down

0 comments on commit 9b240ad

Please sign in to comment.