Skip to content

Commit 39dc7ff

Browse files
committed
Add a unit test to assemble cell-coadds without
visitSummary.
1 parent 779b4f6 commit 39dc7ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_assemble_cell_coadd.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,14 @@ def test_assemble_empty(self):
240240
with self.assertRaises(EmptyCellCoaddError, msg="No cells could be populated for the cell coadd."):
241241
self.runTask(warpRefList=[], maskedFractionRefList=[], noise0RefList=[], visitSummaryList=[])
242242

243+
def test_assemble_without_visitSummary(self):
244+
"""Test that AssembleCellCoaddTask calculates detector weights and
245+
runs successfully without errors when no visit summaries are provided.
246+
"""
247+
self.runTask(visitSummaryList=[])
248+
# Check that we produced an exposure.
249+
self.assertTrue(self.result.multipleCellCoadd is not None)
250+
243251
# TODO: Remove this test in DM-49401
244252
@lsst.utils.tests.methodParameters(do_scale_zero_point=[False, True])
245253
def test_do_scale_zero_point(self, do_scale_zero_point):

0 commit comments

Comments
 (0)