src.tests.test_core module

class src.tests.test_core.TestVariableTranslator(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

_dummy_coords_d = {'PLACEHOLDER_T_COORD': {'axis': 'T', 'standard_name': 'time', 'units': 'days'}, 'PLACEHOLDER_X_COORD': {'axis': 'X', 'standard_name': 'longitude', 'units': 'degrees_east'}, 'PLACEHOLDER_Y_COORD': {'axis': 'Y', 'standard_name': 'latitude', 'units': 'degrees_north'}, 'PLACEHOLDER_Z_COORD': {'axis': 'Z', 'positive': 'down', 'standard_name': 'air_pressure', 'units': 'hPa'}}
test_variabletranslator()[source]
test_variabletranslator_no_key()[source]
test_variabletranslator_aliases()[source]
test_variabletranslator_no_translation()[source]
class src.tests.test_core.TestVariableTranslatorFiles(methodName='runTest')[source]

Bases: unittest.case.TestCase

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_variabletranslator_load_files()[source]
test_variabletranslator_real_data()[source]
class src.tests.test_core.TestPathManager(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_pathmgr_global()[source]
test_pathmgr_global_asserterror()[source]
class src.tests.test_core.TestPathManagerPodCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]

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

case_dict = {'CASENAME': 'A', 'FIRSTYR': 1900, 'LASTYR': 2100, 'model': 'B', 'pod_list': ['AA']}
tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_pathmgr_model()[source]
test_pathmgr_pod()[source]