ibllib.tests.test_pipes

Classes

EnvTask

Dummy task to test environment filtering.

TestLocalServer

Tests for the ibllib.pipes.local_server module.

TestPipesMisc

TestRegisterRawDataTask

TestScanFixPassiveFiles

TestSleeplessDecorator

class EnvTask(session_path, parents=None, taskid=None, one=None, machine=None, clobber=True, location='server', scratch_folder=None, on_error='continue', force=False, data_handler_class=None, **kwargs)[source]

Bases: Task

Dummy task to test environment filtering.

priority = 80
env = 'suite2p'
job_size = 'large'
class TestLocalServer(methodName='runTest')[source]

Bases: TestCase

Tests for the ibllib.pipes.local_server module.

setUp()[source]

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

test_task_queue(lab_repo_mock)[source]

Test ibllib.pipes.local_server.task_queue function.

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

Bases: TestCase

setUp()[source]

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

test_get_new_filename()[source]
test_rename_and_move()[source]
test_move_ephys_files_dry()[source]
test_create_alyx_probe_insertions()[source]
test_probe_names_from_session_path()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: TestCase

setUp()[source]

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

test_scan_fix()[source]
test_find_pairs()[source]
test_move_rename_pairs()[source]
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: TestCase

setUp() None[source]

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

test_rename_files()[source]

Test upload of snapshots.

Another test for this exists in ibllib.tests.test_base_tasks.TestRegisterRawDataTask. This test does not work on real files and works without a test db.

test_online_validation()[source]

Test ONE validation and AlyxClient authentication.

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

Bases: TestCase

test_decorator_argument_passing()[source]