Commit graph

61 commits

Author SHA1 Message Date
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
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
Paul Gauthier (aider)
041d7bf850 style: Fix linter issues in test_main.py 2024-08-20 10:57:47 -07:00
Paul Gauthier (aider)
7538b3be9e feat: add test for return_coder parameter 2024-08-20 10:57:44 -07:00
Paul Gauthier
ad932654ce fix: Remove unnecessary assertion in test_main.py 2024-08-19 16:07:38 -07:00
Paul Gauthier (aider)
621f91cfee feat: Add test case for --4o and --cache options 2024-08-19 16:07:13 -07:00
Paul Gauthier
d71ea571e4 fix: Remove unnecessary assertion in test_main.py 2024-08-19 16:07:12 -07:00
Paul Gauthier (aider)
3424cda63c feat: Add test for main() with --sonnet and --cache-prompts options 2024-08-19 16:06:34 -07:00
Paul Gauthier
1ea18b83b9 fix: Remove redundant test case for sonnet and cache prompts options 2024-08-19 16:06:33 -07:00
Paul Gauthier (aider)
75a7a0043a feat: Add test for --sonnet --cache-prompts --exit options 2024-08-19 16:05:02 -07:00
Paul Gauthier (aider)
a42de792ba fix: Remove unused variable temp_dir in test_sonnet_and_cache_options 2024-08-19 15:36:24 -07:00
Paul Gauthier
34dc7cc37d fix: Improve prompt caching and repo map refresh logic 2024-08-19 15:36:13 -07:00
Paul Gauthier (aider)
f8b80548fd style: Fix code formatting in test_main.py 2024-08-19 15:35:23 -07:00
Paul Gauthier (aider)
697a8b66ea fix: Update test_sonnet_and_cache_options to match actual RepoMap call 2024-08-19 15:35:20 -07:00
Paul Gauthier (aider)
ef7abf0de9 fix: Ensure RepoMap() is called with refresh="files" in test_sonnet_and_cache_options 2024-08-19 15:34:38 -07:00
Paul Gauthier
6db122788a fix: Remove unnecessary assertion in test_main.py 2024-08-19 15:34:36 -07:00
Paul Gauthier (aider)
cc2b48bef8 fix: Set mock_repo_map.max_map_tokens to 1000 in test_sonnet_and_cache_options 2024-08-19 15:32:46 -07:00
Paul Gauthier (aider)
2513e36104 feat: Add test for sonnet and cache options 2024-08-19 15:31:53 -07:00
Paul Gauthier
4081f2c5b1 fix metadata file test 2024-08-15 15:42:15 -07:00
Paul Gauthier (aider)
cb9da29bc3 style: Apply linter edits to test_main.py 2024-08-15 14:45:16 -07:00
Paul Gauthier (aider)
ec836b99cc feat: add test for --model-metadata-file option 2024-08-15 14:45:13 -07:00
Paul Gauthier
1cc1ce0bd4 fix: load yml config files most specific to least 2024-08-14 10:02:55 -07:00
Paul Gauthier (aider)
95535b9294 fix: Update test_yaml_config_file_loading to correctly access model name 2024-08-14 09:56:07 -07:00
Paul Gauthier (aider)
258132bfd4 fix: Fix YAML configuration file loading 2024-08-14 09:54:26 -07:00
Paul Gauthier (aider)
81ed9c3002 style: Apply linter formatting changes 2024-08-14 09:53:48 -07:00
Paul Gauthier (aider)
db22d298e3 feat: Add comprehensive test for YAML config file loading
The commit message is:

feat: Add comprehensive test for YAML config file loading
2024-08-14 09:53:44 -07:00
Paul Gauthier (aider)
abb375eb73 style: Format code with linter 2024-08-13 05:29:21 -07:00
Paul Gauthier (aider)
cef421dfc0 feat: Add patch for InputOutput in test_main_exit_calls_version_check 2024-08-13 05:29:18 -07:00
Paul Gauthier
fcf758527a fix: Call check_version in main with input and output arguments 2024-08-13 05:29:17 -07:00
Paul Gauthier (aider)
58f06e1f56 feat: add GitTemporaryDirectory to test_main_exit_calls_version_check 2024-08-13 05:26:12 -07:00
Paul Gauthier (aider)
a30a27fa8a feat: add test for main --exit that confirms version_check is called 2024-08-13 05:25:36 -07:00
Paul Gauthier (aider)
fdc728e286 fix: Remove pretty argument from Coder.create method calls 2024-08-10 09:00:14 -07:00
Paul Gauthier (aider)
366da70907 fix: Resolve symlinks in external file path for test 2024-08-09 16:44:21 -04:00
Paul Gauthier (aider)
3549ed1205 style: Fix formatting and linting issues in test_main.py 2024-08-09 16:43:27 -04:00
Paul Gauthier (aider)
da5ea3a767 feat: add test for reading external file with --read option 2024-08-09 16:43:08 -04:00
Paul Gauthier (aider)
27a1d9e60f style: Fix linter issues in test_main.py 2024-08-09 16:41:22 -04:00
Paul Gauthier (aider)
6146ea0189 feat: Add test for --read option 2024-08-09 16:41:02 -04:00
Paul Gauthier
fb0691914c fix: Use repo map only when map_tokens is greater than 0 2024-08-06 09:11:21 -03:00
Paul Gauthier (aider)
e20657096f fix: Properly mock RepoMap in test_map_tokens_option 2024-08-06 09:09:52 -03:00
Paul Gauthier
b04d77e345 fix: Update test_main.py to use the correct RepoMap import path 2024-08-06 09:09:51 -03:00
Paul Gauthier (aider)
d34da62b12 fix: Resolve issues in test_main.py 2024-08-06 09:07:40 -03:00
Paul Gauthier
ec7a212b60 fix: Update import path for RepoMap in test_main.py 2024-08-06 09:07:39 -03:00
Paul Gauthier (aider)
ce7cc137fb feat: add --yes flag to map tokens tests 2024-08-06 09:04:41 -03:00
Paul Gauthier (aider)
07aa969860 style: Format code with consistent indentation and line breaks 2024-08-06 09:04:04 -03:00