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.

failureException

alias of builtins.AssertionError

longMessage = True
maxDiff = 640
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.

failureException

alias of builtins.AssertionError

longMessage = True
maxDiff = 640
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': []}
failureException

alias of builtins.AssertionError

longMessage = True
maxDiff = 640