Keep loop-claude's rendering out of the adapter and Claude Code's locations in it
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user