Commit graph

61 commits

Author SHA1 Message Date
Paul Gauthier (aider)
9884d838ea style: run linter and format test_commands.py for improved readability 2024-09-28 14:48:23 -07:00
Paul Gauthier (aider)
384391129d test: add unit test for /copy command with cur_messages present 2024-09-28 14:48:18 -07:00
Paul Gauthier
0819258e0f test: add unit test for handling bad glob in command add 2024-09-28 14:48:17 -07:00
Paul Gauthier (aider)
1e776863ac style: format code and improve linter compliance in test_commands.py 2024-09-28 14:44:04 -07:00
Paul Gauthier (aider)
202a219d82 test: add tests for the /copy command including success, no messages, and exception handling 2024-09-28 14:44:00 -07:00
Paul Gauthier
65d224fba4 fix: Add support for directories with special characters in cmd_add 2024-08-25 12:05:31 -07:00
Paul Gauthier (aider)
68a78e4882 fix: Use platform-independent path for read-only file test 2024-08-23 07:00:45 -07:00
Paul Gauthier (aider)
00e4fdbb48 fix: address flake8 errors in test_cmd_read_only_with_tilde_path 2024-08-23 06:40:17 -07:00
Paul Gauthier (aider)
955709d6c3 feat: add test case for cmd_read_only with tilde path 2024-08-23 06:39:50 -07:00
Paul Gauthier (aider)
1dc325cc72 feat: add test for /read-only command with multiple files 2024-08-22 16:46:19 -07:00
Paul Gauthier (aider)
4ce08178fc feat: Add test for /reset command 2024-08-21 21:26:51 -07:00
Paul Gauthier
f9471fc5b6 fix: Rename cmd_read to cmd_read_only 2024-08-19 16:01:16 -07:00
Paul Gauthier
cb24f8c6d4 attempt to fix windows tests in CI 2024-08-12 14:09:52 -07:00
Paul Gauthier
8d59ce586c fix: Improve handling of read-only files in the cmd_add command 2024-08-12 09:08:24 -07:00
Paul Gauthier (aider)
1e8be8a429 feat: use GitTemporaryDirectory in test_cmd_add_read_only_file 2024-08-12 09:01:32 -07:00
Paul Gauthier (aider)
42d16ebb99 style: Format code to improve readability 2024-08-12 09:00:32 -07:00
Paul Gauthier (aider)
e84418f048 feat: add test for handling read-only files in cmd_add 2024-08-12 09:00:27 -07:00
Paul Gauthier
216ad3b6b5 fix: Add SwitchCoder exception handling in cmd_help 2024-08-10 14:49:55 -07:00
Paul Gauthier (aider)
e7c035def4 fix: Catch SwitchCoder exception in test_cmd_ask 2024-08-10 14:45:25 -07:00
Paul Gauthier
8769f31640 fix: Handle empty commit history in cmd_diff 2024-08-10 09:11:16 -07:00
Paul Gauthier (aider)
9d0b3d17bc style: Format code with linter 2024-08-10 09:10:46 -07:00
Paul Gauthier (aider)
364fda461f fix: Mock repo.get_commit_message instead of aider.sendchat.simple_send_with_retries 2024-08-10 09:10:42 -07:00
Paul Gauthier (aider)
ecba5fb60d feat: add third modification to test case for cmd_diff 2024-08-10 08:55:29 -07:00
Paul Gauthier
edf98d5138 fix: Improve test_commands.py to capture and verify diff output 2024-08-10 08:55:28 -07:00
Paul Gauthier (aider)
ce64f7e1b7 feat: Add test for multiple commits in cmd_diff 2024-08-10 08:53:04 -07:00
Paul Gauthier
65526baeef fix: Add newline to initial commit message 2024-08-10 08:53:03 -07:00
Paul Gauthier (aider)
bea713a01f feat: Add test for cmd_diff command 2024-08-10 08:06:30 -07:00
Paul Gauthier (aider)
06934a9c2d style: Apply linter formatting to test_commands.py 2024-08-09 18:54:37 -04:00
Paul Gauthier (aider)
427164b0bf fix: Use samefile check in test_cmd_read 2024-08-09 18:54:32 -04:00
Paul Gauthier
57a1aafdfd cleanup cmd_drop test 2024-08-09 17:08:01 -04:00
Paul Gauthier (aider)
39fffd81d5 style: Format code with linter 2024-08-09 16:59:01 -04:00
Paul Gauthier (aider)
b73d274e01 fix: Use os.path.samefile() to compare external file path in test_cmd_read_with_external_file 2024-08-09 16:57:45 -04:00
Paul Gauthier (aider)
5365305440 feat: Use GitTemporaryDirectory in test_cmd_read and test_cmd_read_with_external_file 2024-08-09 16:53:28 -04:00
Paul Gauthier (aider)
61c124604d feat: add test_cmd_read_with_external_file for cmd_read 2024-08-09 16:51:58 -04:00
Paul Gauthier (aider)
1557bb0c00 feat: add tests for /read and /drop commands 2024-08-09 16:38:42 -04:00
Paul Gauthier
24f2741369 fix: Simplify mocking in test_commands.py 2024-08-03 10:05:52 -03:00
Paul Gauthier (aider)
91219eee30 style: Apply linter formatting to test_commands.py 2024-08-03 10:03:32 -03:00
Paul Gauthier (aider)
c454d9435e feat: add test for cmd_ask with mocked chat_coder 2024-08-03 10:03:28 -03:00
Paul Gauthier
387b2710b0 fix: Refactor Coder creation to use GitRepo instance 2024-08-01 15:30:49 -03:00
Paul Gauthier (aider)
b9b04052c7 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
Paul Gauthier
33d9f46e25 Add unit test to verify cmd_lint calls linter with correct filename 2024-07-30 10:10:37 -03:00
Paul Gauthier
5edce8ae1b Add linter output to the dump for debugging 2024-07-29 20:28:43 -03:00
Paul Gauthier (aider)
78e7b0b922 Use a more specific assertion method in the test case 2024-07-29 17:17:50 -03:00
Paul Gauthier (aider)
d4f5330f55 Fix typo in assertion for "I ran this command" 2024-07-29 17:17:31 -03:00
Paul Gauthier
11facfe4d5 Add test for cmd_run method to handle unbound local error 2024-07-29 17:17:29 -03:00
Paul Gauthier (aider)
23a9ade113 Modify the test to ensure cmd_run returns without errors 2024-07-29 17:10:09 -03:00
Paul Gauthier (aider)
c8e5c27a2f Add a test to trigger the UnboundLocalError bug in the cmd_run method
Commit message: Add test to trigger UnboundLocalError in cmd_run method
2024-07-29 17:07:51 -03:00
Paul Gauthier (aider)
0a61e83c2b Fix the test_cmd_lint_with_dirty_file test to handle the MagicMock object returned by the lint method. 2024-07-29 16:46:56 -03:00
Paul Gauthier (aider)
24c8363aa8 Fix unused import of unittest in tests/basic/test_commands.py 2024-07-29 16:45:59 -03:00
Paul Gauthier
f90cd6b69b Add unit tests for the cmd_lint command 2024-07-29 16:45:57 -03:00