Beispiel #1
0
def test_multiple_load():
    with pytest.raises(ValueError):
        Plan.load_from_file(os.path.join(PLAN_DIR, 'multiple_plans.py'))
Beispiel #2
0
def other_plan():
    return Plan.load_from_file(os.path.join(PLAN_DIR, 'other', 'plan.py'))
Beispiel #3
0
def test_invalid_load():
    with pytest.raises(ValueError):
        Plan.load_from_file(os.path.join(PLAN_DIR, 'no_plan.py'))
Beispiel #4
0
def plan(plan_file):
    return Plan.load_from_file(plan_file)