mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
test: update test for --check-model-accepts-settings flag
This commit is contained in:
parent
f2e9b06dbd
commit
99cf99e014
1 changed files with 3 additions and 3 deletions
|
@ -716,7 +716,7 @@ class TestMain(TestCase):
|
|||
patch("aider.models.Model.set_thinking_tokens") as mock_set_thinking,
|
||||
):
|
||||
main(
|
||||
["--model", "gpt-4o", "--thinking-tokens", "1000", "--yes", "--exit"],
|
||||
["--model", "gpt-4o", "--thinking-tokens", "1000", "--check-model-accepts-settings", "--yes", "--exit"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
)
|
||||
|
@ -726,8 +726,8 @@ class TestMain(TestCase):
|
|||
if "thinking_tokens" in call[0][0]:
|
||||
warning_shown = True
|
||||
self.assertTrue(warning_shown)
|
||||
# Method should still be called by default
|
||||
mock_set_thinking.assert_called_once_with("1000")
|
||||
# Method should NOT be called because model doesn't support it and check flag is on
|
||||
mock_set_thinking.assert_not_called()
|
||||
|
||||
# Test model that accepts the reasoning_effort setting
|
||||
with (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue