Commit graph

103 commits

Author SHA1 Message Date
Paul Gauthier
0a3b4147fa test: update main tests to handle None input and add --exit flag 2024-09-10 15:32:43 -07:00
Paul Gauthier (aider)
fa49ab09c4 test: update code_theme tests to check InputOutput initialization 2024-09-10 15:24:11 -07:00
Paul Gauthier
454c2f4d0e feat: add --exit flag to test cases for controlled termination 2024-09-10 14:30:04 -07:00
Paul Gauthier (aider)
59bdc45728 refactor: Remove unused mock_open import 2024-09-10 14:18:56 -07:00
Paul Gauthier (aider)
645252168c style: sort imports and fix quotation marks 2024-09-10 14:18:37 -07:00
Paul Gauthier (aider)
fb87dd883c test: patch input() to return empty string
This commit patches the `input()` builtin to return an empty string in the test setup, preventing tests from hanging while waiting for user input. It also adds cleanup for the patch in the teardown method.
2024-09-10 14:18:32 -07:00
Paul Gauthier
8cfdcbd976 refactor: remove redundant get_system_info method and update related test 2024-09-05 13:00:32 -07:00
Paul Gauthier (aider)
45855bd96c feat: add get_system_info method to Coder base class 2024-09-05 12:59:12 -07:00
Paul Gauthier (aider)
b57468a963 test: add test for Spanish chat language option 2024-09-05 12:58:18 -07:00
Paul Gauthier
1a5a618608 fix: handle GitCommandNotFound exception in make_new_repo function 2024-08-31 07:49:23 -07:00
Paul Gauthier (aider)
653f0c77ef fix: add missing cause argument to GitCommandNotFound exception 2024-08-31 07:47:19 -07:00
Paul Gauthier (aider)
6a2dd41275 style: format code with black 2024-08-31 07:46:37 -07:00
Paul Gauthier (aider)
81981e7e99 test: add test for graceful exit when git command not found 2024-08-31 07:46:33 -07:00
Paul Gauthier
0541513c7a refactor: simplify git repository setup process 2024-08-28 15:54:28 -07:00
Paul Gauthier (aider)
b8a52c2bef feat: use IgnorantTemporaryDirectory and create actual repo1 subdirectory in test_setup_git_home_existing_repo 2024-08-28 15:27:03 -07:00
Paul Gauthier (aider)
fc77570b38 fix: Update assertion in test_setup_git_home_invalid_choice 2024-08-28 15:25:12 -07:00
Paul Gauthier (aider)
54c5fb2bbd style: format code 2024-08-28 15:24:11 -07:00
Paul Gauthier (aider)
715a9a9c71 feat: use IgnorantTemporaryDirectory and create actual repo1 and repo2 subdirs in test_setup_git_home_invalid_choice 2024-08-28 15:24:07 -07:00
Paul Gauthier (aider)
4d08f9c6c5 style: format code with linter 2024-08-28 15:20:35 -07:00
Paul Gauthier (aider)
8c1fa3e9ff feat: use IgnorantTemporaryDirectory as Path.home in test_setup_git_home_new_repo 2024-08-28 15:20:31 -07:00
Paul Gauthier (aider)
6e3278afb7 style: Run linter 2024-08-28 15:15:54 -07:00
Paul Gauthier (aider)
8180fb06b0 feat: add tests for setup_git_home 2024-08-28 15:15:50 -07:00
Paul Gauthier
a0b330feda fix: Remove unused test cases for setup_git_home function 2024-08-28 15:15:16 -07:00
Paul Gauthier
d05cd4b459 feat: Implement setup_git_home function 2024-08-28 15:14:13 -07:00
Paul Gauthier
4782c2950f fix 2024-08-28 11:28:29 -07:00
Paul Gauthier (aider)
f466d96597 style: format long function signatures in test_main.py 2024-08-28 11:21:33 -07:00
Paul Gauthier (aider)
a57d9e55d6 fix: handle directory creation errors in setup_git_home 2024-08-28 11:21:28 -07:00
Paul Gauthier (aider)
2192a5efb2 chore: fix failing tests in setup_git_home function 2024-08-28 11:19:30 -07:00
Paul Gauthier (aider)
e551159937 feat: import setup_git_home function in test_main.py 2024-08-28 11:16:56 -07:00
Paul Gauthier (aider)
4074096cd1 style: format code with black 2024-08-28 11:15:54 -07:00
Paul Gauthier (aider)
f43cc7f6c6 test: add unit tests for setup_git_home function 2024-08-28 11:15:50 -07:00
paul-gauthier
0dcbc09761
Merge pull request #1196 from akaihola/isolated-tests
Use fake home directory to prevent `~/.aider.conf.yml` from affecting the test suite
2024-08-27 15:09:40 -07:00
Antti Kaihola
0746805e43 fix: TestMain now uses a fake home directory
This prevents tests from reading unexpected settings from the real
`~/.aider.conf.yml` file.

Fixes #1165.
2024-08-28 00:13:36 +03:00
Paul Gauthier
6f85f38d47 feat: add option to disable shell command suggestions 2024-08-27 14:06:54 -07:00
Paul Gauthier (aider)
7815087444 style: format code with black 2024-08-27 13:57:04 -07:00
Paul Gauthier (aider)
d01e9ef7a4 test: update shell command handling checks in test_apply_shell_commands_with_no_suggest 2024-08-27 13:56:59 -07:00
Paul Gauthier
6a55708357 test: update assertions for shell command suggestion behavior 2024-08-27 13:56:58 -07:00
Paul Gauthier (aider)
59cc799b0d style: format code with linter in test_main.py 2024-08-27 13:53:27 -07:00
Paul Gauthier (aider)
3bc1b7c2b7 test: print confirm_ask args in test_apply_shell_commands_with_no_suggest 2024-08-27 13:53:22 -07:00
Paul Gauthier
ac3df464e1 test: verify shell command suggestion behavior with --no-suggest-shell-commands flag 2024-08-27 13:53:21 -07:00
Paul Gauthier
1569995d26 refactor: simplify shell command tests and add TODOs for confirm_ask checks 2024-08-27 13:41:20 -07:00
Paul Gauthier (aider)
8735efc2b1 test: add tests for --no-suggest-shell-commands behavior 2024-08-27 13:33:56 -07:00
Paul Gauthier (aider)
a41ad9e778 test: add tests for --suggest-shell-commands option 2024-08-27 13:32:34 -07:00
Paul Gauthier
a5c283d7c8 feat: Add prompt cache warming via --cache-warming-pings 2024-08-26 16:33:25 -07:00
Paul Gauthier
b2488af638 fix: Handle path-specific edits in base_coder.py
test: Update test_main.py to check for explicit approval of shell commands
2024-08-21 21:47:11 -07:00
Paul Gauthier (aider)
c7bf46bf68 fix: Remove unused ApplyShellCommandsError import 2024-08-21 21:46:03 -07:00
Paul Gauthier (aider)
f46e3dea11 refactor: Remove ApplyShellCommandsError handling from test 2024-08-21 21:45:54 -07:00
Paul Gauthier (aider)
b54fc0d848 style: Fix import order in test_main.py 2024-08-21 21:42:50 -07:00
Paul Gauthier (aider)
84bb1895ee feat: Add --apply option to main() and raise ApplyShellCommandsError 2024-08-21 21:42:47 -07:00
Paul Gauthier (aider)
bbb40e3045 feat: Add test for --map-mul option and update RepoMap to print map_mul_no_files 2024-08-21 16:03:37 -07:00