def test_submit_two_calcs_external_client(calcsuite_init_specs_two_calcs, external_client, exec_options): exec_options.update(client=external_client) calcs = submit_mult_calcs(calcsuite_init_specs_two_calcs, exec_options) write_to_tar = exec_options.pop('write_to_tar', True) assert_calc_files_exist( calcs, write_to_tar, calcsuite_init_specs_two_calcs['output_time_regional_reductions'])
def test_submit_two_calcs_external_client(calcsuite_init_specs_two_calcs, external_client, exec_options): exec_options.update(client=external_client) calcs = submit_mult_calcs(calcsuite_init_specs_two_calcs, exec_options) write_to_tar = exec_options.pop('write_to_tar', True) assert_calc_files_exist( calcs, write_to_tar, calcsuite_init_specs_two_calcs['output_time_regional_reductions'])
def test_submit_two_calcs(calcsuite_init_specs_two_calcs, exec_options): calcs = submit_mult_calcs(calcsuite_init_specs_two_calcs, exec_options) if exec_options is None: write_to_tar = True else: write_to_tar = exec_options.pop('write_to_tar', True) assert_calc_files_exist( calcs, write_to_tar, calcsuite_init_specs_two_calcs['output_time_regional_reductions'])
def test_submit_two_calcs(calcsuite_init_specs_two_calcs, exec_options): calcs = submit_mult_calcs(calcsuite_init_specs_two_calcs, exec_options) if exec_options is None: write_to_tar = True else: write_to_tar = exec_options.pop('write_to_tar', True) assert_calc_files_exist( calcs, write_to_tar, calcsuite_init_specs_two_calcs['output_time_regional_reductions'])
def test_submit_mult_calcs(calcsuite_init_specs_single_calc, exec_options): calc = submit_mult_calcs(calcsuite_init_specs_single_calc, exec_options)[0] assert isfile(calc.path_out['av']) if exec_options is None: write_to_tar = True else: write_to_tar = exec_options.pop('write_to_tar', True) if write_to_tar: assert isfile(calc.path_tar_out) else: assert not isfile(calc.path_tar_out)
def test_submit_mult_calcs_no_calcs(calcsuite_init_specs): specs = calcsuite_init_specs.copy() specs['input_vertical_datatypes'] = [] with pytest.raises(AospyException): submit_mult_calcs(specs)
def test_submit_mult_calcs_no_calcs(calcsuite_init_specs): specs = calcsuite_init_specs.copy() specs['input_vertical_datatypes'] = [] with pytest.raises(AospyException): submit_mult_calcs(specs)