Tests package

Package containing all unit and integration tests.

Tests.test_data_loaders_IMG

class Tests.test_data_loaders_IMG.TestDataLoaderIMG(methodName='runTest')

Bases: unittest.case.TestCase

create_list_and_test(list_length, n_elements)
setUp()

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_get_fixed_number_of_elements_and_their_indices_from_various_sized_list()
test_ignore_useless()

Tests.test_dry_spot_detection

class Tests.test_dry_spot_detection.TestDrySpotDetectionLeoben(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_dry_spots()

Tests.test_eval_train_deconv

class Tests.test_eval_train_deconv.TestEval(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

tearDown() → None

Hook method for deconstructing the test fixture after testing it.

test_eval()
test_eval_preparation()
test_save_load_training()
test_training()
test_training_apex()
test_training_load_optimizer()

Tests.test_hdf5_writer

class Tests.test_hdf5_writer.TestPyWriter(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_hdf5_writing()

Tests.test_ok_notok_training

class Tests.test_ok_notok_training.TestOkNotOkTraining(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

tearDown() → None

Hook method for deconstructing the test fixture after testing it.

test_training_ok_notok()

Tests.test_torch_datagenerator

class Tests.test_torch_datagenerator.SampleWrapper(sample)

Bases: object

A wrapper around samples returned using the _dummy_dataloader_fn Provides a by-value hash function and a nice __repr__ method

to_list(tensor)
class Tests.test_torch_datagenerator.TestFileDiscovery(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_caching()
test_gathering()
class Tests.test_torch_datagenerator.TestFileSetIterable(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_dataloader()
test_dataloader_mp()
test_simple()
class Tests.test_torch_datagenerator.TestFileSetIterator(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_get_remaining_files()
test_loading()
class Tests.test_torch_datagenerator.TestLoopingDatagenerator(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_splits_add_up()
class Tests.test_torch_datagenerator.TestLoopingStrategies(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_dump_load()
test_noop_strategy()
test_strategies()
class Tests.test_torch_datagenerator.TestSubsetGenerator(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_can_load_abs_paths_with_root()
test_cant_load_rel_paths_without_root()
test_split_save_load()
test_split_size()

Tests.test_training_dryspot_from_ff

class Tests.test_training_dryspot_from_ff.TestTrainingDryspotFF(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

tearDown() → None

Hook method for deconstructing the test fixture after testing it.

test_training()