예제 #1
0
파일: test_plan.py 프로젝트: mbr/remand
def test_multiple_load():
    with pytest.raises(ValueError):
        Plan.load_from_file(os.path.join(PLAN_DIR, 'multiple_plans.py'))
예제 #2
0
파일: test_plan.py 프로젝트: mbr/remand
def other_plan():
    return Plan.load_from_file(os.path.join(PLAN_DIR, 'other', 'plan.py'))
예제 #3
0
파일: test_plan.py 프로젝트: mbr/remand
def test_invalid_load():
    with pytest.raises(ValueError):
        Plan.load_from_file(os.path.join(PLAN_DIR, 'no_plan.py'))
예제 #4
0
파일: test_plan.py 프로젝트: mbr/remand
def plan(plan_file):
    return Plan.load_from_file(plan_file)