Skip to content

Commit

Permalink
clean up formatting of test code
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemccabe committed Oct 3, 2022
1 parent 2097047 commit 504b990
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions internal/tests/pytests/wrappers/stat_analysis/test_stat_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,27 +127,27 @@ def test_set_lists_as_loop_or_group(metplus_config):
# and those not set are set to GROUP_LIST_ITEMS
st = stat_analysis_wrapper(metplus_config)
# Test 1
expected_lists_to_group_items = [ 'FCST_INIT_HOUR_LIST', 'DESC_LIST',
'FCST_LEAD_LIST', 'OBS_LEAD_LIST',
'OBS_VALID_HOUR_LIST',
'OBS_INIT_HOUR_LIST', 'FCST_VAR_LIST',
'OBS_VAR_LIST', 'FCST_UNITS_LIST',
'OBS_UNITS_LIST', 'FCST_LEVEL_LIST',
'OBS_LEVEL_LIST', 'VX_MASK_LIST',
'INTERP_MTHD_LIST', 'INTERP_PNTS_LIST',
'FCST_THRESH_LIST', 'OBS_THRESH_LIST',
'COV_THRESH_LIST', 'ALPHA_LIST',
'LINE_TYPE_LIST' ]
expected_lists_to_loop_items = [ 'FCST_VALID_HOUR_LIST', 'MODEL_LIST' ]
expected_lists_to_group_items = ['FCST_INIT_HOUR_LIST', 'DESC_LIST',
'FCST_LEAD_LIST', 'OBS_LEAD_LIST',
'OBS_VALID_HOUR_LIST',
'OBS_INIT_HOUR_LIST', 'FCST_VAR_LIST',
'OBS_VAR_LIST', 'FCST_UNITS_LIST',
'OBS_UNITS_LIST', 'FCST_LEVEL_LIST',
'OBS_LEVEL_LIST', 'VX_MASK_LIST',
'INTERP_MTHD_LIST', 'INTERP_PNTS_LIST',
'FCST_THRESH_LIST', 'OBS_THRESH_LIST',
'COV_THRESH_LIST', 'ALPHA_LIST',
'LINE_TYPE_LIST']
expected_lists_to_loop_items = ['FCST_VALID_HOUR_LIST', 'MODEL_LIST']
config_dict = {}
config_dict['LOOP_ORDER'] = 'times'
config_dict['PROCESS_LIST'] = 'StatAnalysis'
config_dict['CONFIG_FILE'] = (
'PARM_BASE/grid_to_grid/met_config/STATAnalysisConfig'
)
config_dict['OUTPUT_DIR'] = 'OUTPUT_BASE/stat_analysis'
config_dict['GROUP_LIST_ITEMS'] = [ 'FCST_INIT_HOUR_LIST' ]
config_dict['LOOP_LIST_ITEMS'] = [ 'FCST_VALID_HOUR_LIST', 'MODEL_LIST']
config_dict['GROUP_LIST_ITEMS'] = ['FCST_INIT_HOUR_LIST']
config_dict['LOOP_LIST_ITEMS'] = ['FCST_VALID_HOUR_LIST', 'MODEL_LIST']
config_dict['FCST_VAR_LIST'] = []
config_dict['OBS_VAR_LIST'] = []
config_dict['FCST_LEVEL_LIST'] = []
Expand All @@ -156,12 +156,12 @@ def test_set_lists_as_loop_or_group(metplus_config):
config_dict['OBS_UNITS_LIST'] = []
config_dict['FCST_THRESH_LIST'] = []
config_dict['OBS_THRESH_LIST'] = []
config_dict['MODEL_LIST'] = [ 'MODEL_TEST' ]
config_dict['MODEL_LIST'] = ['MODEL_TEST']
config_dict['DESC_LIST'] = []
config_dict['FCST_LEAD_LIST'] = []
config_dict['OBS_LEAD_LIST'] = []
config_dict['FCST_VALID_HOUR_LIST'] = [ '00', '06', '12', '18']
config_dict['FCST_INIT_HOUR_LIST'] = [ '00', '06', '12', '18']
config_dict['FCST_VALID_HOUR_LIST'] = ['00', '06', '12', '18']
config_dict['FCST_INIT_HOUR_LIST'] = ['00', '06', '12', '18']
config_dict['OBS_VALID_HOUR_LIST'] = []
config_dict['OBS_INIT_HOUR_LIST'] = []
config_dict['VX_MASK_LIST'] = []
Expand Down

0 comments on commit 504b990

Please sign in to comment.