mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 21:04:59 +00:00
test: Fix expected edit format in /model command tests
This commit is contained in:
parent
35decf122d
commit
c62ceb5db1
1 changed files with 2 additions and 2 deletions
|
@ -1683,7 +1683,7 @@ class TestCommands(TestCase):
|
|||
context.exception.kwargs.get("main_model").weak_model.name, self.GPT35.weak_model.name
|
||||
)
|
||||
# Check that the edit format is updated to the new model's default
|
||||
self.assertEqual(context.exception.kwargs.get("edit_format"), "whole")
|
||||
self.assertEqual(context.exception.kwargs.get("edit_format"), "diff")
|
||||
|
||||
def test_cmd_model_preserves_explicit_edit_format(self):
|
||||
io = InputOutput(pretty=False, fancy_input=False, yes=True)
|
||||
|
@ -1754,7 +1754,7 @@ class TestCommands(TestCase):
|
|||
# Check that the SwitchCoder exception contains the correct model configuration
|
||||
self.assertEqual(context.exception.kwargs.get("main_model").name, "gpt-4")
|
||||
# Check that the edit format is updated to the new model's default
|
||||
self.assertEqual(context.exception.kwargs.get("edit_format"), "whole")
|
||||
self.assertEqual(context.exception.kwargs.get("edit_format"), "diff")
|
||||
|
||||
def test_cmd_ask(self):
|
||||
io = InputOutput(pretty=False, fancy_input=False, yes=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue