ibllib.tests.test_oneibl

Classes

TestAlyx2Path

TestFTPPatcher

TestRegistration

TestRegistrationEndpoint

class TestFTPPatcher(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

reset_params()[source]

Remove the FTP parameters from the AlyxClient

test_setup(_)[source]
static mock_input(prompt)[source]
class TestAlyx2Path(methodName='runTest')[source]

Bases: unittest.case.TestCase

dset = {'collection': 'alf/probe00', 'file_records': [{'id': 'c9ae1b6e-03a6-41c9-9e1b-4a7f9b5cfdbf', 'data_repository': 'ibl_floferlab_SR', 'data_repository_path': '/mnt/s0/Data/Subjects/', 'relative_path': 'SWC_014/2019-12-11/001/alf/probe00/channels.localCoordinates.npy', 'data_url': None, 'exists': True}, {'id': 'f434a638-bc61-4695-884e-70fd1e521d60', 'data_repository': 'flatiron_hoferlab', 'data_repository_path': '/hoferlab/Subjects/', 'relative_path': 'SWC_014/2019-12-11/001/alf/probe00/channels.localCoordinates.npy', '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}], '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'}
test_dsets_2_path()[source]
class TestRegistrationEndpoint(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_task_names_extractors()[source]

This is to test against regressions

class TestRegistration(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_registration_datasets()[source]
test_create_sessionS()[source]
test_registration_session()[source]
tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.