MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_engine_succeeds_headless

Function test_engine_succeeds_headless

tests/test_tasks_command.py:106–116  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

104# F. Engine end-to-end (headless, no raise — unlike pickers)
105# --------------------------------------------------------------------------- #
106async def test_engine_succeeds_headless(tmp_path):
107 tasks = [_task("t1", "local_shell", "running", "do it")]
108 reg = CommandRegistry()
109 reg.register(TASKS_COMMAND)
110 ctx = _ctx(tmp_path, tasks=tasks) # ui=None → engine subs NullUIHost
111 eng = CommandEngine(registry=reg, workspace_root=tmp_path, context=ctx)
112
113 result = await eng.execute("/tasks")
114
115 assert result.success is True
116 assert result.text.startswith("Background tasks:")

Callers

nothing calls this directly

Calls 6

registerMethod · 0.95
executeMethod · 0.95
CommandRegistryClass · 0.90
CommandEngineClass · 0.90
_taskFunction · 0.85
_ctxFunction · 0.70

Tested by

no test coverage detected