Skip to content

Commit

Permalink
Update to a list of dataIds per the new test code
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Jan 29, 2020
1 parent 86e0098 commit 3a2f0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ def setUp(self):
self.ingestDir = os.path.dirname(__file__)
self.instrument = HyperSuprimeCam()
self.file = os.path.join(testDataDirectory, "hsc", "raw", "HSCA90402512.fits.gz")
self.dataId = dict(instrument="HSC", exposure=904024, detector=50)
self.dataIds = [dict(instrument="HSC", exposure=904024, detector=50)]

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)
expanded = self.butler.registry.expandDataId(self.dataIds[0])
self.assertEqual(expanded.records["exposure"].observation_type, "science")


Expand Down

0 comments on commit 3a2f0c6

Please sign in to comment.