src.tests.test_data_manager module

class src.tests.test_data_manager.TestDataManagerSetup(methodName='runTest')[source]

Bases: unittest.case.TestCase

default_case = {'CASENAME': 'A', 'FIRSTYR': 1900, 'LASTYR': 2100, 'model': 'B', 'pod_list': ['C']}
default_pod_CF = {'settings': {}, 'varlist': [{'var_name': 'pr_var', 'freq': 'mon'}]}
dummy_paths = {'CODE_ROOT': 'A', 'MODEL_DATA_ROOT': 'C', 'OBS_DATA_ROOT': 'B', 'OUTPUT_DIR': 'E', 'WORKING_DIR': 'D'}
dummy_var_translate = {'convention_name': 'not_CF', 'var_names': {'pr_var': 'PRECT', 'prc_var': 'PRECC'}}
setUp(mock_read_json)[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_setup_model_paths()[source]
test_set_model_env_vars()[source]
test_set_model_env_vars_no_model(mock_check_dirs)[source]
test_setup_html()[source]
test_setup_pod_cf_cf()[source]
test_setup_pod_cf_custom()[source]
class src.tests.test_data_manager.TestDataManagerSetupNonCFPod(methodName='runTest')[source]

Bases: unittest.case.TestCase

default_case = {'CASENAME': 'A', 'FIRSTYR': 1900, 'LASTYR': 2100, 'model': 'B', 'pod_list': ['C']}
default_pod_not_CF = {'settings': {'variable_convention': 'not_CF'}, 'varlist': [{'var_name': 'PRECT', 'freq': 'mon'}]}
dummy_paths = {'CODE_ROOT': 'A', 'MODEL_DATA_ROOT': 'C', 'OBS_DATA_ROOT': 'B', 'OUTPUT_DIR': 'E', 'WORKING_DIR': 'D'}
dummy_var_translate = {'convention_name': 'not_CF', 'var_names': {'pr_var': 'PRECT', 'prc_var': 'PRECC'}}
setUp(mock_read_json)[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_setup_pod_custom_cf()[source]
test_setup_pod_custom_custom()[source]
test_parse_pod_settings_conda_env(mock_read_json)[source]
class src.tests.test_data_manager.TestDataManagerFetchData(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp(mock_read_json)[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

default_case = {'CASENAME': 'A', 'FIRSTYR': 1900, 'LASTYR': 2100, 'model': 'B', 'pod_list': []}