aider/tests
Paul Gauthier (aider) 7d2f184b36 feat: add tests for commit_prompt functionality
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.
2024-07-31 09:50:34 -03:00
..
basic feat: add tests for commit_prompt functionality 2024-07-31 09:50:34 -03:00
browser renamed hf-embed -> help 2024-07-16 11:03:01 +01:00
help test pip install on /help directory 2024-07-16 10:50:26 +01:00
scrape Fix test for self-signed url scrape 2024-07-28 16:49:32 -03:00
__init__.py do not package tests/ 2024-07-15 08:40:32 +01:00