Commit graph

1084 commits

Author SHA1 Message Date
Nikolay Sedelnikov
e8e1bd556f
fix: Handle new file creation in the same folder 2024-08-30 15:52:05 +02:00
paul-gauthier
59cb457008
Merge pull request #1216 from akaihola/misc-cleanups
Clean up types and drop an unused variable
2024-08-29 13:16:48 -07:00
Paul Gauthier (aider)
178983827b test: use real GPT35 model and remove token count mocking 2024-08-29 13:05:16 -07:00
Paul Gauthier (aider)
3b9b789b2d style: format code with linter 2024-08-29 13:02:54 -07:00
Paul Gauthier (aider)
5f3583d7f2 test: add test for show_exhausted_error method 2024-08-29 13:02:49 -07:00
Antti Kaihola
5376ae25e2 fix: use raw strings when backslashes 2024-08-29 21:10:47 +03:00
Paul Gauthier (aider)
9b4ee190ba style: Reorder imports in test_scrape.py 2024-08-28 22:50:31 -07:00
Paul Gauthier (aider)
7b36d1f0d3 feat: implement retry mechanism for scraping badssl.com 2024-08-28 22:50:28 -07:00
Paul Gauthier
ce397b71e8 do not try pexpect on windows; fix time.clock error on windows 2024-08-28 22:26:48 -07:00
Paul Gauthier (aider)
9acbee31db style: add noqa comment to suppress unused import warning 2024-08-28 22:14:55 -07:00
Paul Gauthier (aider)
e0c806476f style: format test_run_cmd.py with black 2024-08-28 22:14:11 -07:00
Paul Gauthier (aider)
40993fecf7 test: add tests for run_cmd function using echo command 2024-08-28 22:14:08 -07:00
Paul Gauthier
8e66b2d790 test: add basic test for run_cmd function 2024-08-28 22:14:06 -07:00
Paul Gauthier
e45def7a98 refactor: sort new file mentions before confirmation 2024-08-28 17:59:04 -07:00
Paul Gauthier (aider)
5d2a930f69 test: add mock test for check_for_file_mentions behavior 2024-08-28 17:51:37 -07:00
Paul Gauthier
e11cd8ecbb test: update AutoCompleter test for command matching 2024-08-28 16:03:40 -07:00
Paul Gauthier (aider)
d2bc24cb18 fix: update test_get_command_completions to handle matching_commands return value 2024-08-28 16:01:10 -07:00
Paul Gauthier (aider)
6687a24547 style: format test_io.py with linter 2024-08-28 16:00:49 -07:00
Paul Gauthier (aider)
d02e96f773 test: add test case for get_command_completions with "/model gpt" input 2024-08-28 16:00:45 -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
a3554ffbbc fix /read completions 2024-08-27 16:40:07 -07:00
Paul Gauthier
31f7856f41 feat: enhance autocomplete functionality for code tokens and filenames 2024-08-27 15:24:45 -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
714c991230 test: remove unnecessary paginate parameter in cmd_web test 2024-08-27 14:10:56 -07:00
Paul Gauthier (aider)
ca414ebf32 style: remove unused import of ANY from unittest.mock 2024-08-27 14:07:08 -07:00
Paul Gauthier
6f85f38d47 feat: add option to disable shell command suggestions 2024-08-27 14:06:54 -07:00
Paul Gauthier (aider)
825a94f7f0 fix: strip whitespace from shell command in test assertion 2024-08-27 14:05:10 -07:00
Paul Gauthier
ac9aaff3cf test: refactor shell command suggestion test in test_coder.py 2024-08-27 14:05:09 -07:00
Paul Gauthier (aider)
9125bfc441 style: sort imports in test_coder.py 2024-08-27 14:01:38 -07:00
Paul Gauthier (aider)
96f406ab16 test: add test for suggest_shell_commands functionality 2024-08-27 14:01:34 -07:00
Paul Gauthier (aider)
a9002a3d30 test: add test for suggest_shell_commands functionality 2024-08-27 14:01:14 -07:00
Paul Gauthier (aider)
7815087444 style: format code with black 2024-08-27 13:57:04 -07:00