Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: obs_cfht
-
Labels:None
-
Team:SQuaRE
Description
All of the test* functions in tests/testButler.py were disabled if the datadir wasn't found except for testPackageName. However, that test uses the butler as well, so if there's no datadir then that test must be skipped as well. Fix is to do:
def testPackageName(self):
|
if not self.runTests:
|
return
|
self.assertEqual(self.butler.mapper.packageName, "obs_cfht")
|
Tests should not be disabled, they should be skipped. Returning without action indicates that the test has passed. What we want is the test harness to realise that a load of tests have been skipped (with the reason). This will be very helpful if we aren't expecting tests to be skipped.