ibllib.tests.test_base_tasks

Classes

TestBehaviourTask

TestRegisterRawDataTask

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

Bases: TestCase

tmpdir = None
one = None
session_path = None
eid = None
classmethod setUpClass() None[source]

Hook method for setting up class fixture before running tests in the class.

test_register_snapshots()[source]

Test ibllib.pipes.base_tasks.RegisterRawDataTask.register_snapshots.

A more thorough test for this exists in ibllib.tests.test_pipes.TestRegisterRawDataTask. This test does not mock REST (and therefore requires a test database), while the other does. This test could be removed as it’s rather redundant.

test_rename_files()[source]
classmethod tearDownClass() None[source]

Hook method for deconstructing the class fixture after running all tests in the class.

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

Bases: TestCase

test_spacer_support() None[source]

Test for BehaviourTask._spacer_support method.

test_get_task_collection() None[source]

Test for BehaviourTask.get_task_collection method.

test_get_protocol() None[source]

Test for BehaviourTask.get_protocol method.

test_get_protocol_number() None[source]

Test for BehaviourTask.get_protocol_number method.

test_assert_trials_data()[source]

Test for BehaviourTask._assert_trials_data method.