(tmp_path)
| 104 | # F. Engine end-to-end (headless, no raise — unlike pickers) |
| 105 | # --------------------------------------------------------------------------- # |
| 106 | async 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:") |
nothing calls this directly
no test coverage detected