@@ -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 :
@@ -109,12 +112,15 @@ def setUpClass(cls):
109112 from one .api import ONE
110113
111114 cls .eid = "e2b845a1-e313-4a08-bc61-a5f662ed295e"
112- cls .one = ONE (
113- base_url = "https://openalyx.internationalbrainlab.org" ,
114- password = "international" ,
115- silent = True ,
116- cache_dir = None ,
117- )
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." )
118124 cls .recording = read_ibl_recording (eid = cls .eid , stream_name = "probe00.ap" , load_sync_channel = True , one = cls .one )
119125 cls .small_scaled_trace = cls .recording .get_traces (start_frame = 5 , end_frame = 26 , return_scaled = True )
120126 cls .small_unscaled_trace = cls .recording .get_traces (
@@ -182,12 +188,15 @@ def test_ibl_sorting_extractor(self):
182188 """
183189 from one .api import ONE
184190
185- one = ONE (
186- base_url = "https://openalyx.internationalbrainlab.org" ,
187- password = "international" ,
188- silent = True ,
189- cache_dir = None ,
190- )
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." )
191200 sorting = read_ibl_sorting (pid = PID , one = one )
192201 assert len (sorting .unit_ids ) == 733
193202 sorting_good = read_ibl_sorting (pid = PID , good_clusters_only = True )
0 commit comments