mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
![]() The new test case `test_get_commit_message_with_custom_prompt` ensures that when a custom `commit_prompt` is provided to the `GitRepo` constructor, it's used instead of the default prompt when generating commit messages. The test checks that: 1. The custom commit prompt is passed correctly to the `simple_send_with_retries` function. 2. The returned commit message is as expected. 3. The `simple_send_with_retries` function is called only once (since we're using a single model). This new test case, along with the existing `test_get_commit_message_no_strip_unmatched_quotes` test, provides better coverage for the `get_commit_message` method in the `GitRepo` class. |
||
---|---|---|
.. | ||
test_coder.py | ||
test_commands.py | ||
test_editblock.py | ||
test_history.py | ||
test_io.py | ||
test_main.py | ||
test_models.py | ||
test_repo.py | ||
test_repomap.py | ||
test_sendchat.py | ||
test_udiff.py | ||
test_urls.py | ||
test_wholefile.py |