mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
feat(repo): add support for multiple models in get_commit_message
This commit is contained in:
parent
7d2f184b36
commit
2212613c47
1 changed files with 5 additions and 5 deletions
|
@ -159,7 +159,7 @@ class TestRepo(unittest.TestCase):
|
||||||
self.assertEqual(result, "Custom commit message")
|
self.assertEqual(result, "Custom commit message")
|
||||||
mock_send.assert_called_once()
|
mock_send.assert_called_once()
|
||||||
_, kwargs = mock_send.call_args
|
_, kwargs = mock_send.call_args
|
||||||
self.assertEqual(kwargs['messages'][0]['content'], custom_prompt)
|
self.assertEqual(kwargs["messages"][0]["content"], custom_prompt)
|
||||||
|
|
||||||
@patch("aider.repo.GitRepo.get_commit_message")
|
@patch("aider.repo.GitRepo.get_commit_message")
|
||||||
def test_commit_with_custom_committer_name(self, mock_send):
|
def test_commit_with_custom_committer_name(self, mock_send):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue