

def create_job_exec(type, configs=None, proxy=False, info=None):
    b = create_job_binary('1', type)
    j = _create_job('2', b, type)
    _cje_func = (_create_job_exec_with_proxy if proxy else _create_job_exec)
    e = _cje_func(j.id, type, configs, info)
    return (j, e)

dataset/ETHPy150Open openstack/sahara/sahara/tests/unit/service/edp/edp_test_utils.py create_job_exec/original