Keep loop-claude's rendering out of the adapter and Claude Code's locations in it

This commit is contained in:
2026-09-28 20:21:01 +02:00
parent 938eaf69fc
commit 711d13b71b
5 changed files with 45 additions and 31 deletions
+4 -4
View File
@@ -58,10 +58,10 @@ class HumanTurns(unittest.TestCase):
class Said(unittest.TestCase):
def test_renders_text_and_tool_calls_and_nothing_else(self):
self.assertEqual(claude_code.said({"type": "text", "text": "hi"}), "hi")
self.assertEqual(claude_code.said({"type": "text", "text": " \n"}), "")
self.assertEqual(claude_code.said({"type": "tool_use", "name": "Bash", "input": {"command": "x" * 500}}, 20), '[tool Bash] {"command": "xxxxxxx')
self.assertEqual(claude_code.said("not a part"), "")
self.assertEqual(transcript.said({"type": "text", "text": "hi"}), "hi")
self.assertEqual(transcript.said({"type": "text", "text": " \n"}), "")
self.assertEqual(transcript.said({"type": "tool_use", "name": "Bash", "input": {"command": "x" * 500}}, 20), '[tool Bash] {"command": "xxxxxxx')
self.assertEqual(transcript.said("not a part"), "")
class Parse(unittest.TestCase):