aider/tests/basic
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
..
test_coder.py Normalize file paths to resolve symbolic links in macOS when comparing absolute file names between coders. 2024-07-29 17:26:14 -03:00
test_commands.py Modify the test to check if the linter was called with a filename string whose Path().name matches the expected filename. 2024-07-30 10:10:39 -03:00
test_editblock.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_history.py Add fallback to second model when first model fails in ChatSummary 2024-07-30 12:16:32 -03:00
test_io.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_main.py Mocked Path.home() in addition to setting os.environ["HOME"] in the test_env_file_override function. 2024-07-18 17:42:50 +01:00
test_models.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_repo.py feat: add tests for commit_prompt functionality 2024-07-31 09:50:34 -03:00
test_repomap.py Add OCaml test case for repomap 2024-07-30 15:03:54 -03:00
test_sendchat.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_udiff.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_urls.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00
test_wholefile.py use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00