ibllib.tests.test_oneibl
Functions
Create a basic session settings file for testing. |
Classes
Tests for ibllib.oneibl.data_handlers.DataHandler classes. |
|
Tests for the ibllib.oneibl.patcher.GlobusPatcher class. |
|
Test for SDSCDataHandler class. |
|
Test helper functions in ibllib.oneibl.registration module. |
- class TestUtils(methodName='runTest')[source]
Bases:
TestCase
Test helper functions in ibllib.oneibl.registration module.
- class TestGlobusPatcher(methodName='runTest')[source]
Bases:
TestCase
Tests for the ibllib.oneibl.patcher.GlobusPatcher class.
- globus_sdk_mock = None
Mock object for globus_sdk package.
- Type:
unittest.mock._patch
- class TestAlyx2Path(methodName='runTest')[source]
Bases:
TestCase
- dset = {'collection': 'alf/probe00', 'file_records': [{'data_repository': 'ibl_floferlab_SR', 'data_repository_path': '/mnt/s0/Data/Subjects/', 'data_url': None, 'exists': True, 'id': 'c9ae1b6e-03a6-41c9-9e1b-4a7f9b5cfdbf', 'relative_path': 'SWC_014/2019-12-11/001/alf/probe00/channels.localCoordinates.npy'}, {'data_repository': 'flatiron_hoferlab', 'data_repository_path': '/hoferlab/Subjects/', 'data_url': 'https://ibl.flatironinstitute.org/hoferlab/Subjects/SWC_014/2019-12-11/001/alf/probe00/channels.localCoordinates.00059298-1b33-429c-a802-fa51bb662d72.npy', 'exists': True, 'id': 'f434a638-bc61-4695-884e-70fd1e521d60', 'relative_path': 'SWC_014/2019-12-11/001/alf/probe00/channels.localCoordinates.npy'}], 'name': 'channels.localCoordinates.npy', 'session': 'https://alyx.internationalbrainlab.org/sessions/7cffad38-0f22-4546-92b5-fd6d2e8b2be9', 'url': 'https://alyx.internationalbrainlab.org/datasets/00059298-1b33-429c-a802-fa51bb662d72'}
- get_mock_session_settings(subject='clns0730', user='test_user')[source]
Create a basic session settings file for testing.
- class TestRegistration(methodName='runTest')[source]
Bases:
TestCase
- subject = ''
The name of the subject under which to create sessions.
- Type:
str
- one = None
An instance of ONE connected to a test database.
- Type:
- test_registration_session_passive()[source]
Test IBLRegistrationClient.register_session method when there is no iblrig bpod data.
For truly passive sessions there is no Bpod data (no raw_behavior_data or raw_task_data folders). In this situation the must already be a session on Alyx manually created by the experimenter, which needs to contain the start time, location, lab, and user data.
- class TestDataHandlers(methodName='runTest')[source]
Bases:
TestCase
Tests for ibllib.oneibl.data_handlers.DataHandler classes.
- class TestSDSCDataHandler(methodName='runTest')[source]
Bases:
TestCase
Test for SDSCDataHandler class.