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

Function _ctx

tests/test_tasks_command.py:31–37  ·  view source on GitHub ↗
(tmp_path, *, ui=None, tasks=None, tool_context="__default__")

Source from the content-addressed store, hash-verified

29
30
31def _ctx(tmp_path, *, ui=None, tasks=None, tool_context="__default__"):
32 if tool_context == "__default__":
33 registry = SimpleNamespace(all=lambda: list(tasks or []))
34 tool_context = SimpleNamespace(runtime_tasks=registry)
35 return create_command_context(
36 workspace_root=tmp_path, cwd=tmp_path, ui=ui, tool_context=tool_context
37 )
38
39
40# --------------------------------------------------------------------------- #

Calls 1

create_command_contextFunction · 0.90

Tested by

no test coverage detected