MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_empty_plan

Method test_empty_plan

tests/planning/test_executor.py:395–407  ·  view source on GitHub ↗

Empty plan succeeds immediately.

(self, tmp_path)

Source from the content-addressed store, hash-verified

393
394 @pytest.mark.asyncio
395 async def test_empty_plan(self, tmp_path):
396 """Empty plan succeeds immediately."""
397 tm = FakeToolManager()
398 context = PlanningContext(tm, plans_dir=tmp_path / "plans")
399 runner = PlanRunner(context, enable_guards=False)
400
401 result = await runner.execute_plan(
402 {"id": "empty", "title": "Empty", "steps": []},
403 checkpoint=False,
404 )
405
406 assert result.success
407 assert len(result.steps) == 0
408
409 @pytest.mark.asyncio
410 async def test_execution_callbacks(self, tmp_path):

Callers

nothing calls this directly

Calls 4

execute_planMethod · 0.95
PlanningContextClass · 0.90
PlanRunnerClass · 0.90
FakeToolManagerClass · 0.70

Tested by

no test coverage detected