mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: Add test for sonnet and cache options
This commit is contained in:
parent
69b76c23e8
commit
2513e36104
1 changed files with 14 additions and 0 deletions
|
@ -514,3 +514,17 @@ class TestMain(TestCase):
|
|||
)
|
||||
|
||||
self.assertEqual(coder.main_model.info["max_input_tokens"], 1234)
|
||||
|
||||
def test_sonnet_and_cache_options(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.coders.base_coder.RepoMap") as MockRepoMap:
|
||||
mock_repo_map = MagicMock()
|
||||
MockRepoMap.return_value = mock_repo_map
|
||||
|
||||
main(
|
||||
["--sonnet", "--cache", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
)
|
||||
|
||||
mock_repo_map.refresh.assert_called_once_with("files")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue