Skip to content

Commit

Permalink
Fix tests in Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Oct 29, 2024
1 parent 407532f commit 46f95df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import lsst.utils.tests
from lsst.summit.extras.animation import Animator
from lsst.summit.utils.butlerUtils import makeDefaultLatissButler
from lsst.summit.utils.utils import getSite


class AnimationTestCase(lsst.utils.tests.TestCase):
Expand All @@ -37,6 +38,8 @@ def setUpClass(cls):
raise unittest.SkipTest("Skipping tests that require ffmpeg.")

try:
if getSite() == "jenkins":
raise unittest.SkipTest("Skip running butler-driven tests in Jenkins.")
cls.butler = makeDefaultLatissButler()
except FileNotFoundError:
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")
Expand Down
5 changes: 5 additions & 0 deletions tests/test_focusAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@

import lsst.summit.utils.butlerUtils as butlerUtils # noqa: E402
from lsst.summit.extras import NonSpectralFocusAnalyzer, SpectralFocusAnalyzer # noqa: E402
from lsst.summit.utils.utils import getSite # noqa: E402


class FocusAnalysisTestCase(lsst.utils.tests.TestCase):
@classmethod
def setUpClass(cls):
try:
if getSite() == "jenkins":
raise unittest.SkipTest("Skip running butler-driven tests in Jenkins.")
cls.butler = butlerUtils.makeDefaultLatissButler()
except FileNotFoundError:
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")
Expand Down Expand Up @@ -74,6 +77,8 @@ class NonSpectralFocusAnalysisTestCase(lsst.utils.tests.TestCase):
@classmethod
def setUpClass(cls):
try:
if getSite() == "jenkins":
raise unittest.SkipTest("Skip running butler-driven tests in Jenkins.")
cls.butler = butlerUtils.makeDefaultLatissButler()
except FileNotFoundError:
raise unittest.SkipTest("Skipping tests that require the LATISS butler repo.")
Expand Down

0 comments on commit 46f95df

Please sign in to comment.