Skip to content

Commit 21cc1b6

Browse files
committed
add skip to the rest of the tests
1 parent 9eb82ba commit 21cc1b6

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

src/spikeinterface/extractors/tests/test_iblextractors.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,15 @@ def setUpClass(cls):
112112
from one.api import ONE
113113

114114
cls.eid = "e2b845a1-e313-4a08-bc61-a5f662ed295e"
115-
cls.one = ONE(
116-
base_url="https://openalyx.internationalbrainlab.org",
117-
password="international",
118-
silent=True,
119-
cache_dir=None,
120-
)
115+
try:
116+
cls.one = ONE(
117+
base_url="https://openalyx.internationalbrainlab.org",
118+
password="international",
119+
silent=True,
120+
cache_dir=None,
121+
)
122+
except:
123+
pytest.skip("Skipping test due to server being down.")
121124
cls.recording = read_ibl_recording(eid=cls.eid, stream_name="probe00.ap", load_sync_channel=True, one=cls.one)
122125
cls.small_scaled_trace = cls.recording.get_traces(start_frame=5, end_frame=26, return_scaled=True)
123126
cls.small_unscaled_trace = cls.recording.get_traces(
@@ -185,12 +188,15 @@ def test_ibl_sorting_extractor(self):
185188
"""
186189
from one.api import ONE
187190

188-
one = ONE(
189-
base_url="https://openalyx.internationalbrainlab.org",
190-
password="international",
191-
silent=True,
192-
cache_dir=None,
193-
)
191+
try:
192+
one = ONE(
193+
base_url="https://openalyx.internationalbrainlab.org",
194+
password="international",
195+
silent=True,
196+
cache_dir=None,
197+
)
198+
except:
199+
pytest.skip("Skipping test due to server being down.")
194200
sorting = read_ibl_sorting(pid=PID, one=one)
195201
assert len(sorting.unit_ids) == 733
196202
sorting_good = read_ibl_sorting(pid=PID, good_clusters_only=True)

0 commit comments

Comments
 (0)