예제 #1
0
 def setUp(self, mock_read_json):
     setUp_ConfigManager(
         config=self.default_case, 
         paths=self.dummy_paths, 
         pods={'C': self.default_pod_CF}
     )
     _ = util_mdtf.VariableTranslator(unittest = True)
예제 #2
0
 def setUp(self):
     # set up translation dictionary without calls to filesystem
     setUp_ConfigManager(
         paths={
             'CODE_ROOT': 'A',
             'OBS_DATA_ROOT': 'B',
             'MODEL_DATA_ROOT': 'C',
             'WORKING_DIR': 'D',
             'OUTPUT_DIR': 'E'
         })
예제 #3
0
 def setUp(self):
     # set up translation dictionary without calls to filesystem
     setUp_ConfigManager(config=self.case_dict,
                         paths={
                             'CODE_ROOT': 'A',
                             'OBS_DATA_ROOT': 'B',
                             'MODEL_DATA_ROOT': 'C',
                             'WORKING_DIR': 'D',
                             'OUTPUT_DIR': 'E'
                         },
                         pods={
                             'AA': {
                                 'settings': {},
                                 'varlist': [{
                                     'var_name': 'pr_var',
                                     'freq': 'mon'
                                 }]
                             }
                         })
예제 #4
0
 def setUp(self):
     # set up translation dictionary without calls to filesystem
     setUp_ConfigManager()
예제 #5
0
 def setUp(self, mock_read_json):
     setUp_ConfigManager(paths=self.dummy_paths,
                         pods={'DUMMY_POD': self.default_pod})
     _ = util_mdtf.VariableTranslator(unittest=True)
예제 #6
0
 def setUp(self):
     setUp_ConfigManager()