Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_plan_may_have_no_steps():
assert execute_plan({"method": []}, layers) is None
def test_plan_needs_a_method():
with pytest.raises(InvalidPlan) as excinfo:
execute_plan({}, layers)
assert "a plan must have a method defined" in str(excinfo)