示例#1
0
def test_prepare_stop_condition_no_wait():
    max_run = 1
    max_wait = None

    stop_condition = _Job._prepare_stop_condition(max_run, max_wait)

    assert stop_condition["MaxRuntimeInSeconds"] == max_run
    assert "MaxWaitTimeInSeconds" not in stop_condition
示例#2
0
def test_prepare_stop_condition():
    max_run = 1

    stop_condition = _Job._prepare_stop_condition(max_run)

    assert stop_condition['MaxRuntimeInSeconds'] == max_run