Skip to content

Commit

Permalink
Add tiny test for QuickLookIsrConnections.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Dec 11, 2023
1 parent 3b2bf87 commit bbfad32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_bestEffortIsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import lsst.utils.tests

from lsst.summit.utils.bestEffort import BestEffortIsr
from lsst.summit.utils.quickLook import QuickLookIsrTask
import lsst.summit.utils.butlerUtils as butlerUtils
import lsst.afw.image as afwImage

Expand Down Expand Up @@ -78,6 +79,15 @@ def test_raises(self):
with self.assertRaises(ValueError):
self.bestEffortIsr.getExposure(dataId)

def test_quicklook_connections(self):
"""Test that various QuickLookIsrConnections inputs are no longer
required.
"""
connections = QuickLookIsrTask.ConfigClass.ConnectionsClass(config=QuickLookIsrTask.ConfigClass())
self.assertEqual(connections.bias.minimum, 0)
self.assertEqual(connections.flat.minimum, 0)
self.assertEqual(connections.ccdExposure.minimum, 1)


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

0 comments on commit bbfad32

Please sign in to comment.