one.tests.alf.test_alf_io

Unit tests for the one.alf.io module.

Classes

TestALFFolders

TestAlfBunch

TestFindVariants

TestUUID_Files

TestsAlf

TestsAlfPartsFilters

TestsLoadFile

Tests for one.alf.io.load_fil_content function.

TestsLoadFileNonStandard

Tests for one.alf.io.load_fil_content function with non-standard libraries.

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

Bases: TestCase

test_to_dataframe_scalars()[source]
test_to_dataframe_vectors()[source]
test_from_dataframe()[source]

Tests for AlfBunch.from_df method

test_append_numpy()[source]
test_append_list()[source]
test_check_dimensions()[source]
class TestsAlfPartsFilters(methodName='runTest')[source]

Bases: TestCase

setUp() None[source]

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

test_npy_parts_and_file_filters()[source]
test_filter_by()[source]

Test for one.alf.io.filter_by

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: TestCase

setUp() None[source]

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

test_exists()[source]

Test for one.alf.io.exists.

test_metadata_columns()[source]
test_metadata_columns_UUID()[source]
test_read_ts()[source]

Test for one.alf.io.read_ts

test_load_object()[source]

Test for one.alf.io.load_object

test_ls()[source]

Test for one.alf.io._ls

test_save_npy()[source]

Test for one.alf.io.save_npy

test_check_dimensions()[source]

Test for one.alf.io.check_dimensions

test_ts2vec()[source]

Test for one.alf.io.ts2vec

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: TestCase

Tests for one.alf.io.load_fil_content function.

setUp() None[source]

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

test_load_file_content()[source]

Test for one.alf.io.load_file_content

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

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

Bases: TestCase

Tests for one.alf.io.load_fil_content function with non-standard libraries.

setUp() None[source]

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

test_load_sparse_npz()[source]
class TestUUID_Files(methodName='runTest')[source]

Bases: TestCase

test_remove_uuid_recusive()[source]
class TestALFFolders(methodName='runTest')[source]

Bases: TestCase

tempdir = None
session_path = None
classmethod setUpClass() None[source]

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

classmethod tearDownClass() None[source]

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

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

test_next_num_folder()[source]

Test for one.alf.io.next_num_folder.

test_remove_empty_folders()[source]

Test for one.alf.io.remove_empty_folders.

test_iter_sessions()[source]

Test for one.alf.io.iter_sessions.

test_iter_datasets()[source]

Test for one.alf.io.iter_datasets.

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

Bases: TestCase

setUp()[source]

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

test_unique()[source]

Test for one.alf.io.find_variants function.