Skip to content

Commit 98f7972

Browse files
committed
remove deprecated calls to ibllib,version in tests
1 parent 0c5a87c commit 98f7972

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ibllib/tests/test_oneibl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def test_registration_session(self):
254254
for ds in datasets:
255255
self.assertTrue(ds['hash'] is not None)
256256
self.assertTrue(ds['file_size'] is not None)
257-
self.assertTrue(ds['version'] == version.ibllib())
257+
self.assertTrue(ds['version'] == ibllib.__version__)
258258
# checks the procedure of the session
259259
ses_info = self.one.alyx.rest('sessions', 'read', id=eid)
260260
self.assertTrue(ses_info['procedures'] == ['Ephys recording with acute probe(s)'])

ibllib/tests/test_tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from pathlib import Path
44
from collections import OrderedDict
55

6-
from ibllib.misc import version
76
import ibllib.pipes.tasks
87
from one.api import ONE
98
from ibllib.tests import TEST_DB
@@ -31,8 +30,8 @@
3130

3231
desired_datasets = ['spikes.times.npy', 'spikes.amps.npy', 'spikes.clusters.npy']
3332
desired_versions = {'spikes.times.npy': 'custom_job00',
34-
'spikes.amps.npy': version.ibllib(),
35-
'spikes.clusters.npy': version.ibllib()}
33+
'spikes.amps.npy': ibllib.__version__,
34+
'spikes.clusters.npy': ibllib.__version__}
3635
desired_logs = 'Running on machine: testmachine'
3736
desired_logs_rerun = {
3837
'Task00': 1,

0 commit comments

Comments
 (0)