Skip to content

Commit 9eb82ba

Browse files
committed
test general skip
1 parent 0b8486b commit 9eb82ba

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

src/spikeinterface/extractors/tests/test_iblextractors.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ def setUpClass(cls):
1919
from one.api import ONE
2020

2121
cls.eid = EID
22-
cls.one = ONE(
23-
base_url="https://openalyx.internationalbrainlab.org",
24-
password="international",
25-
silent=True,
26-
cache_dir=None,
27-
)
22+
try:
23+
cls.one = ONE(
24+
base_url="https://openalyx.internationalbrainlab.org",
25+
password="international",
26+
silent=True,
27+
cache_dir=None,
28+
)
29+
except:
30+
pytest.skip("Skipping test due to server being down.")
2831
try:
2932
cls.recording = read_ibl_recording(eid=cls.eid, stream_name="probe00.ap", one=cls.one)
3033
except requests.exceptions.HTTPError as e:

0 commit comments

Comments
 (0)