mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
fix: Add missing summarizer mock to ArchitectCoder tests
This commit is contained in:
parent
c168f78a13
commit
63c2a98f3c
1 changed files with 6 additions and 0 deletions
|
@ -1075,6 +1075,8 @@ This command will print 'Hello, World!' to the console."""
|
||||||
coder.total_cost = 0
|
coder.total_cost = 0
|
||||||
coder.cur_messages = []
|
coder.cur_messages = []
|
||||||
coder.done_messages = []
|
coder.done_messages = []
|
||||||
|
coder.summarizer = MagicMock()
|
||||||
|
coder.summarizer.too_big.return_value = False
|
||||||
|
|
||||||
# Mock editor_coder creation and execution
|
# Mock editor_coder creation and execution
|
||||||
mock_editor = MagicMock()
|
mock_editor = MagicMock()
|
||||||
|
@ -1108,8 +1110,12 @@ This command will print 'Hello, World!' to the console."""
|
||||||
coder.total_cost = 0
|
coder.total_cost = 0
|
||||||
coder.cur_messages = []
|
coder.cur_messages = []
|
||||||
coder.done_messages = []
|
coder.done_messages = []
|
||||||
|
coder.summarizer = MagicMock()
|
||||||
|
coder.summarizer.too_big.return_value = False
|
||||||
coder.cur_messages = []
|
coder.cur_messages = []
|
||||||
coder.done_messages = []
|
coder.done_messages = []
|
||||||
|
coder.summarizer = MagicMock()
|
||||||
|
coder.summarizer.too_big.return_value = False
|
||||||
|
|
||||||
# Mock editor_coder creation and execution
|
# Mock editor_coder creation and execution
|
||||||
mock_editor = MagicMock()
|
mock_editor = MagicMock()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue