mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 13:25:00 +00:00
feat: Add test for main() with --sonnet and --cache-prompts options
This commit is contained in:
parent
1ea18b83b9
commit
3424cda63c
1 changed files with 12 additions and 0 deletions
|
@ -533,3 +533,15 @@ class TestMain(TestCase):
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
call_kwargs.get("refresh"), "files"
|
call_kwargs.get("refresh"), "files"
|
||||||
) # Check the 'refresh' keyword argument
|
) # Check the 'refresh' keyword argument
|
||||||
|
|
||||||
|
def test_sonnet_and_cache_prompts_options(self):
|
||||||
|
with GitTemporaryDirectory():
|
||||||
|
coder = main(
|
||||||
|
["--sonnet", "--cache-prompts", "--exit", "--yes"],
|
||||||
|
input=DummyInput(),
|
||||||
|
output=DummyOutput(),
|
||||||
|
return_coder=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
self.assertTrue(coder.add_cache_headers)
|
||||||
|
self.assertEqual(coder.main_model.name, "gpt-4-1106-preview")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue