Skip to content

Commit

Permalink
add skip to the rest of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Aug 6, 2024
1 parent 9eb82ba commit 21cc1b6
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/spikeinterface/extractors/tests/test_iblextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,15 @@ def setUpClass(cls):
from one.api import ONE

cls.eid = "e2b845a1-e313-4a08-bc61-a5f662ed295e"
cls.one = ONE(
base_url="https://openalyx.internationalbrainlab.org",
password="international",
silent=True,
cache_dir=None,
)
try:
cls.one = ONE(
base_url="https://openalyx.internationalbrainlab.org",
password="international",
silent=True,
cache_dir=None,
)
except:
pytest.skip("Skipping test due to server being down.")
cls.recording = read_ibl_recording(eid=cls.eid, stream_name="probe00.ap", load_sync_channel=True, one=cls.one)
cls.small_scaled_trace = cls.recording.get_traces(start_frame=5, end_frame=26, return_scaled=True)
cls.small_unscaled_trace = cls.recording.get_traces(
Expand Down Expand Up @@ -185,12 +188,15 @@ def test_ibl_sorting_extractor(self):
"""
from one.api import ONE

one = ONE(
base_url="https://openalyx.internationalbrainlab.org",
password="international",
silent=True,
cache_dir=None,
)
try:
one = ONE(
base_url="https://openalyx.internationalbrainlab.org",
password="international",
silent=True,
cache_dir=None,
)
except:
pytest.skip("Skipping test due to server being down.")
sorting = read_ibl_sorting(pid=PID, one=one)
assert len(sorting.unit_ids) == 733
sorting_good = read_ibl_sorting(pid=PID, good_clusters_only=True)
Expand Down

0 comments on commit 21cc1b6

Please sign in to comment.