MCPcopy Create free account
hub / github.com/bcefghj/miniClaudeCode / TestSystemPrompt

Class TestSystemPrompt

tests/test_agent_loop.py:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class TestSystemPrompt(unittest.TestCase):
72 def test_build_includes_tools(self):
73 registry = ToolRegistry.default()
74 prompt = build_system_prompt(registry, permission_mode="ask")
75 self.assertIn("bash", prompt)
76 self.assertIn("read_file", prompt)
77 self.assertIn("ASK", prompt)
78
79 def test_plan_mode_description(self):
80 registry = ToolRegistry.default()
81 prompt = build_system_prompt(registry, permission_mode="plan")
82 self.assertIn("read-only", prompt)
83
84
85class TestToolResultDataclass(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected