feat(repo): add support for multiple models in get_commit_message

This commit is contained in:
Paul Gauthier 2024-07-31 09:51:26 -03:00 committed by Paul Gauthier (aider)
parent 7d2f184b36
commit 2212613c47

View file

@ -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):