fix(conductor): Apply review suggestions for track 'test_curation_20260225'
This commit is contained in:
@@ -75,7 +75,8 @@ class TestGeminiCliAdapter(unittest.TestCase):
|
||||
|
||||
result = self.adapter.send("test message")
|
||||
|
||||
self.assertEqual(result, "The quick brown fox jumps.")
|
||||
self.assertEqual(result["text"], "The quick brown fox jumps.")
|
||||
self.assertEqual(result["tool_calls"], [])
|
||||
|
||||
@patch('subprocess.Popen')
|
||||
def test_send_handles_tool_use_events(self, mock_popen):
|
||||
@@ -100,7 +101,9 @@ class TestGeminiCliAdapter(unittest.TestCase):
|
||||
result = self.adapter.send("read test.txt")
|
||||
|
||||
# Result should contain the combined text from all 'message' events
|
||||
self.assertEqual(result, "Calling tool...\nFile read successfully.")
|
||||
self.assertEqual(result["text"], "Calling tool...\nFile read successfully.")
|
||||
self.assertEqual(len(result["tool_calls"]), 1)
|
||||
self.assertEqual(result["tool_calls"][0]["name"], "read_file")
|
||||
|
||||
@patch('subprocess.Popen')
|
||||
def test_send_captures_usage_metadata(self, mock_popen):
|
||||
|
||||
Reference in New Issue
Block a user