Pickle Tests

The module pickle_tests is a class responsible for testing the pickling the preprocessed HARPS and ESPRESSO dataset.

class pickle_test.TestPickles(methodName='runTest')[source]

Bases: TestCase

Unit tests for the unpickle_data function.

test_data_loading(mock_file)[source]

Tests successful loading of data from the pickle file.

test_eof_error(mock_file)[source]

Tests that EOFError is raised for an empty or improperly formatted file.

test_file_not_found(mock_file)[source]

Tests that FileNotFoundError is raised when the file does not exist.

test_generic_exception(mock_file)[source]

Tests that a generic exception is raised for other issues during loading.

L98-59 Tests

The module test_l98_59 is a class responsible for testing the L98-59 model.