Skip to content

Commit

Permalink
Test that convert manager raises error
Browse files Browse the repository at this point in the history
If _setCoordinateCovariance is not implemented by a subclass,
ConvertRefcatManager should raise an error if _setCoordinateCovariance
is called.
  • Loading branch information
cmsaunders committed Dec 9, 2022
1 parent d02491c commit d1bb8a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/nopytest_convertReferenceCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ def test_getCatalog(self):
self.assertFloatsEqual(newcat[:len(catalog)]['coord_ra'], catalog['coord_ra'])
self.assertFloatsEqual(newcat[:len(catalog)]['coord_dec'], catalog['coord_dec'])

def test_setCoordinateCovariance(self):
catalog = self._createFakeCatalog(nOld=10, nNew=0)

with self.assertRaises(NotImplementedError):
self.worker._setCoordinateCovariance(catalog[0], self.fakeInput[0])

def tearDown(self):
self.tempDir.cleanup()
self.tempDir2.cleanup()
Expand Down

0 comments on commit d1bb8a0

Please sign in to comment.