Skip to content

Commit

Permalink
Test all Exposure components
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 15, 2018
1 parent 571c1e9 commit 6ec10d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_posixDatastoreFits.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ def testExposurePutGet(self):
exposureOut = datastore.get(uri, storageClass=storageClass, parameters=None)
self.assertEqual(type(exposure), type(exposureOut))

# Get a component
# Get some components
for c in ("wcs", "image", "mask", "coaddInputs", "psf"):
self.assertIn(c, comps)
component = datastore.get(comps[c], storageClass=storageClass)
self.assertIsNotNone(component)

# Get a component to check it
self.assertIn("wcs", comps)
wcs = datastore.get(comps["wcs"], storageClass=storageClass)

Expand All @@ -147,7 +153,7 @@ def testExposureCompositePutGet(self):
typeName=None)

# Get a component
for c in ("wcs", ):
for c in ("wcs", "image", "mask", "coaddInputs", "psf"):
self.assertIn(c, comps)
component = datastore.get(comps[c], storageClass=storageClass.components[c])
self.assertIsNotNone(component)
Expand Down

0 comments on commit 6ec10d6

Please sign in to comment.