mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Remove redundant test case for sonnet and cache prompts options
This commit is contained in:
parent
75a7a0043a
commit
1ea18b83b9
1 changed files with 0 additions and 18 deletions
|
@ -533,21 +533,3 @@ class TestMain(TestCase):
|
|||
self.assertEqual(
|
||||
call_kwargs.get("refresh"), "files"
|
||||
) # Check the 'refresh' keyword argument
|
||||
|
||||
def test_sonnet_and_cache_prompts_options(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.coders.Coder.create") as MockCoder:
|
||||
mock_coder = MagicMock()
|
||||
MockCoder.return_value = mock_coder
|
||||
|
||||
main(
|
||||
["--sonnet", "--cache-prompts", "--exit", "--yes"],
|
||||
input=DummyInput(),
|
||||
output=DummyOutput(),
|
||||
)
|
||||
|
||||
MockCoder.assert_called_once()
|
||||
_, kwargs = MockCoder.call_args
|
||||
self.assertEqual(kwargs["main_model"].name, "gpt-4-1106-preview")
|
||||
self.assertTrue(kwargs["cache_prompts"])
|
||||
self.assertTrue(mock_coder.add_cache_headers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue