mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
style: Format code with linter to improve readability
This commit is contained in:
parent
e28fdb9cb1
commit
794072bdf8
1 changed files with 8 additions and 7 deletions
|
@ -130,18 +130,19 @@ class TestReasoning(unittest.TestCase):
|
|||
|
||||
# Verify mdstream.update was called multiple times
|
||||
mock_mdstream.update.assert_called()
|
||||
|
||||
|
||||
# Explicitly get all calls to update
|
||||
update_calls = mock_mdstream.update.call_args_list
|
||||
|
||||
|
||||
# There should be at least two calls - one for streaming and one final
|
||||
self.assertGreaterEqual(len(update_calls), 2,
|
||||
"Should have at least two calls to update (streaming + final)")
|
||||
|
||||
self.assertGreaterEqual(
|
||||
len(update_calls), 2, "Should have at least two calls to update (streaming + final)"
|
||||
)
|
||||
|
||||
# Check that at least one call has final=True (should be the last one)
|
||||
has_final_true = any(call[1].get('final', False) for call in update_calls)
|
||||
has_final_true = any(call[1].get("final", False) for call in update_calls)
|
||||
self.assertTrue(has_final_true, "At least one update call should have final=True")
|
||||
|
||||
|
||||
# Get the text from the last update call
|
||||
final_text = update_calls[-1][0][0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue