Skip to content

Commit

Permalink
Let Jenkins skip the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Oct 28, 2024
1 parent ede270a commit 72953d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_bestEffortIsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BestEffortIsrTestCase(lsst.utils.tests.TestCase):
def setUpClass(cls):
try:
cls.bestEffortIsr = BestEffortIsr()
except FileNotFoundError:
except (FileNotFoundError, ValueError):
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")

# chosen as this is available in the following locations - collections:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_butlerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def setUp(self):
# butler stuff
try:
self.butler = makeDefaultLatissButler()
except FileNotFoundError:
except (FileNotFoundError, ValueError):
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")
self.assertIsInstance(self.butler, dafButler.Butler)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_nightReport.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class NightReportTestCase(lsst.utils.tests.TestCase):
def setUpClass(cls):
try:
cls.butler = butlerUtils.makeDefaultLatissButler()
except FileNotFoundError:
except (FileNotFoundError, ValueError):
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")

cls.dayObs = 20200314 # has 377 images and data also exists on the TTS & summit
Expand Down

0 comments on commit 72953d9

Please sign in to comment.