Paul Gauthier
38e7f04e60
lint
2025-05-08 15:13:38 -07:00
Andrew Grigorev
1d42690824
fix: update co-authored-by domain to aider.chat
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 20:52:55 +03:00
Andrew Grigorev
5851d66174
test: improve test clarity with skipIf and assertion messages
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 20:00:44 +03:00
Andrew Grigorev
6a970c3515
test: remove redundant co-authored-by precedence test
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 19:58:29 +03:00
Andrew Grigorev
9e91e8f1b2
test: remove redundant commit attribution tests
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 19:58:06 +03:00
Andrew Grigorev
3e1bc77bf2
test: add tests for commit author/committer attribution logic
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 19:56:18 +03:00
Andrew Grigorev
d991cb6721
test: cover user commit with no committer attribution
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 19:54:56 +03:00
Andrew Grigorev
37a252748a
test: Fix commit result assertion in test_noop_commit
2025-04-12 19:47:18 +03:00
Andrew Grigorev
5664b5b195
test: Assert commit return value in more tests
...
Co-authored-by: aider (vertex_ai/gemini-2.0-flash-lite-001) <noreply@aider.dev>
2025-04-12 19:41:24 +03:00
Andrew Grigorev
ea74f31b3e
feat: Explicit author/committer flags override co-authored-by
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 19:09:46 +03:00
Andrew Grigorev
dd4b61da20
test: add test for co-authored-by precedence over author/committer
...
Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
2025-04-12 18:26:46 +03:00
Andrew Grigorev (aider)
48f89f226f
fix: prevent name modification when using co-authored-by
2025-04-12 17:51:58 +03:00
Andrew Grigorev (aider)
b22c9b8542
feat: implement Co-authored-by attribution option
2025-04-12 17:32:15 +03:00
Andrew Grigorev (aider)
a5327af5e9
test: fix mock setup for co-authored-by commit test
2025-04-12 17:19:04 +03:00
Andrew Grigorev (aider)
192f8bec26
test: fix mock model name setup in co-authored-by test
2025-04-12 17:09:12 +03:00
Andrew Grigorev (aider)
eb28e22891
test: fix mock setup for model name in co-authored-by test
2025-04-12 17:07:41 +03:00
Andrew Grigorev (aider)
b6b8f30378
test: add tests for co-authored-by commit attribution
2025-04-12 16:57:21 +03:00
Paul Gauthier (aider)
3dc5a48fcc
fix: Handle newline in git commit message assertion
2025-03-20 15:23:41 -07:00
Paul Gauthier (aider)
bff077f855
style: Remove trailing whitespace in test_repo.py
2025-03-20 15:23:20 -07:00
Paul Gauthier (aider)
6022b09437
fix: Move pre-commit hook creation after initial commit in test
2025-03-20 15:23:15 -07:00
Paul Gauthier (aider)
62b52a78fe
style: Remove trailing whitespace in test_repo.py
2025-03-20 15:22:07 -07:00
Paul Gauthier (aider)
e33dc9355d
test: Add test for --git-commit-verify option
2025-03-20 15:22:03 -07:00
Paul Gauthier (aider)
606fce65ab
test: Fix assertion errors in commit message tests for mock calls
2025-02-04 12:22:09 -08:00
Paul Gauthier (aider)
b4084484ff
fix: Update test patches to mock simple_send_with_retries correctly
2025-02-04 12:20:13 -08:00
Paul Gauthier (aider)
c9c2d5ab6f
test: update test assertions to check model objects instead of names
2024-12-07 13:38:57 -08:00
Paul Gauthier (aider)
427a83b075
fix: Use call_args_list to verify all calls to mocked function
2024-08-23 15:17:16 -07:00
Paul Gauthier
100cca5dbf
feat: Add model dumps to test_repo.py
2024-08-23 15:17:15 -07:00
Paul Gauthier (aider)
04fff71e73
feat: Add tests for subtree_only
2024-08-06 08:47:39 -03:00
Paul Gauthier
da3e507ec4
Revert "rename simple_send_with_retries -> send_with_retries"
...
This reverts commit d619edf6e9
.
2024-08-02 10:49:44 -03:00
Paul Gauthier
d619edf6e9
rename simple_send_with_retries -> send_with_retries
2024-08-02 10:35:10 -03:00
Paul Gauthier
008ae54a55
fix: Add time.sleep to wait for file changes to be detected
2024-08-01 17:20:38 -03:00
Paul Gauthier (aider)
5bfedea9ff
feat: update test to correctly access message content
...
The test for `test_get_commit_message_with_custom_prompt` has been updated to correctly access the message content from the positional arguments of the `simple_send_with_retries` function call. This ensures that the test accurately reflects the implementation in the `GitRepo` class.
2024-07-31 09:51:28 -03:00
Paul Gauthier
2212613c47
feat(repo): add support for multiple models in get_commit_message
2024-07-31 09:51:26 -03:00
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
Paul Gauthier (aider)
f04fb8d53a
Add a test for get_commit_message
that initializes a GitRepo
with two models and ensures the commit message is correctly retrieved from the second model.
2024-07-28 17:13:35 -03:00
Paul Gauthier
896e79bcd1
use pytest.ini testpaths to order testing
2024-07-16 10:33:42 +01:00