Skip to content

Commit

Permalink
Merge pull request #225 from lsst/tickets/DM-21836
Browse files Browse the repository at this point in the history
DM-21836: Add test that observation_type is populated in ingest.
  • Loading branch information
TallJimbo committed Oct 21, 2019
2 parents 582278a + 5b39af2 commit 0172535
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def setUp(self):

super().setUp()

def checkRepo(self, files=None):
# We ignore `files` because there's only one raw file in
# testdata_subaru, and we know it's a science frame.
# If we ever add more, this test will need to change.
expanded = self.butler.registry.expandDataId(self.dataId)
self.assertEqual(expanded.records["exposure"].observation_type, "science")


def setup_module(module):
lsst.utils.tests.init()
Expand Down

0 comments on commit 0172535

Please sign in to comment.