one.tests.alf.test_cache

Unit tests for the one.alf.cache module.

Classes

TestsONEParquet

Tests for the make_parquet_db function and its helpers

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

Bases: TestCase

Tests for the make_parquet_db function and its helpers

rel_ses_path = 'mylab/Subjects/mysub/2021-02-28/001/'
ses_info = {'date': datetime.date(2021, 2, 28), 'id': 'mylab/mysub/2021-02-28/001', 'lab': 'mylab', 'number': 1, 'projects': '', 'subject': 'mysub', 'task_protocol': ''}
rel_ses_files = [PosixPath('alf/spikes.clusters.npy'), PosixPath('alf/spikes.times.npy')]
setUp() None[source]

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

test_parse()[source]
test_parquet()[source]
test_sessions_df()[source]
test_datasets_df()[source]
tests_db()[source]
test_hash_ids()[source]
test_remove_missing_datasets()[source]
tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.