paul-gauthier
41435228a3
Update test_commands.py
2023-10-25 16:00:20 -07:00
Paul Gauthier
b6142af12b
make sure **.txt does not crash chat #293
2023-10-25 15:52:26 -07:00
Paul Gauthier
95f2b4546e
fixed tests
2023-10-25 15:31:23 -07:00
Paul Gauthier
277a92b3c6
fixed tests
2023-10-25 15:30:33 -07:00
Paul Gauthier
3299d90317
Handle successive editblocks from same file w/o filename #267
2023-10-22 11:28:22 -07:00
Paul Gauthier
4654e81241
Merge branch 'main' into sitter-map
2023-10-20 08:05:33 -07:00
Paul Gauthier
6791bc19c6
added test for --encoding
2023-10-20 08:04:02 -07:00
Paul Gauthier
7929e825e7
fixed test
2023-10-19 15:27:51 -07:00
Paul Gauthier
c0375d3328
fix tests; fix off-by-one bug in output of repomap
2023-10-18 15:42:38 -07:00
Paul Gauthier
1085549548
Give up testing aiderignore caching in github actions
2023-10-18 12:28:24 -07:00
Paul Gauthier
df27007c00
wtf
2023-10-18 12:22:01 -07:00
Paul Gauthier
1a2370f9ae
sleep in the test
2023-10-18 12:15:11 -07:00
Paul Gauthier
b87c9f14fb
put back caching, add debug output
2023-10-18 12:11:07 -07:00
Paul Gauthier
a1cb6e4e7a
More paranoid mtime check
2023-10-18 11:55:04 -07:00
Paul Gauthier
2e6c785c3b
cache aiderignore
2023-10-18 10:39:07 -07:00
Paul Gauthier
583c3285ec
added tests, fixed bug
2023-10-18 10:31:45 -07:00
Paul Gauthier
774589b376
test to ensure we accept abs filenames; use shlex so we handle quoted filenames; #152 #156
2023-09-29 15:02:45 -07:00
Paul Gauthier
d2acb8e95e
use a windows compatible regex filename
2023-09-29 14:50:41 -07:00
Paul Gauthier
dc19a1fe4b
/add treats args as literal filenames initially, only glob if they do not exist #195
2023-09-29 13:44:49 -07:00
Paul Gauthier
399d86d437
block /add of files from outside coder.root #178
2023-09-29 13:27:43 -07:00
Paul Gauthier
98bacd0b5b
test case and fix for /add blowing up in subdir #201
2023-09-29 10:49:27 -07:00
Paul Gauthier
6d5827643f
don't try and commit unless there are changes #264
2023-09-25 14:55:00 -07:00
Paul Gauthier
1334392418
lint
2023-09-01 15:53:19 -07:00
Joshua Vial
0826e116da
cleaning up openrouter code
2023-08-23 22:03:09 +12:00
Joshua Vial
668a0500ff
test openrouter model properties
2023-08-23 21:50:00 +12:00
Joshua Vial
d1e0a196b5
Add test for creating models from OpenRouter API.
2023-08-23 21:32:00 +12:00
Joshua Vial
abbc93678b
finishing openrouter integration
2023-08-23 21:26:27 +12:00
Paul Gauthier
5c538327c3
update tests
2023-08-19 07:23:00 -07:00
Paul Gauthier
ae8d04a95f
Handle diff of file not yet part of repo
2023-08-18 13:20:27 -07:00
Paul Gauthier
2737cbde06
ssh
2023-08-18 10:35:42 -07:00
Paul Gauthier
285536105e
Properly handle all diff cases
2023-08-18 10:07:47 -07:00
Paul Gauthier
7af82ba185
keep track of the files which need dirty commits
2023-08-18 09:50:18 -07:00
Paul Gauthier
752e47a886
better tests, small cleanups
2023-08-18 09:43:40 -07:00
Paul Gauthier
95fb55b9d9
test_gpt_edit_to_dirty_file
2023-08-18 09:17:07 -07:00
Paul Gauthier
93795c085a
make sure newly created files don't just get committed
2023-08-18 08:01:14 -07:00
Paul Gauthier
83f084a800
aider: Added assertion to check if repo.iter_commits(repo.active_branch.name)
raises git.exc.GitCommandError
.
...
# Aider chat conversation:
ASSISTANT: I understand that you want to complete the TODO task in the `test_new_file_edit_one_commit` method in the `tests/test_coder.py` file. However, the task is not clear. The TODO comment says:
```python
### TODO: assert that the next line raises git.exc.GitCommandError
```
This suggests that the following line of code should raise a `git.exc.GitCommandError` exception:
```python
repo.iter_commits(repo.active_branch.name)
```
To complete this task, we need to add a test assertion that checks if this line of code raises the `git.exc.GitCommandError` exception. We can use the `assertRaises` method from the `unittest.TestCase` class to do this.
Here is the change that needs to be made:
<source>python
tests/test_coder.py
<<<<<<< HEAD
### TODO: assert that the next line raises git.exc.GitCommandError
repo.iter_commits(repo.active_branch.name)
=======
with self.assertRaises(git.exc.GitCommandError):
repo.iter_commits(repo.active_branch.name)
>>>>>>> updated
</source>
This change will add an assertion that checks if the `repo.iter_commits(repo.active_branch.name)` line of code raises a `git.exc.GitCommandError` exception. If the line of code does not raise this exception, the test will fail.
2023-08-18 08:00:04 -07:00
Paul Gauthier
f722394db6
Assert that the file exists before iterating through commits.
2023-08-18 08:00:03 -07:00
Paul Gauthier
d09e85adc2
Also ensure commit msg only depends on diffs from the GPT edited file.
2023-08-18 07:55:42 -07:00
Paul Gauthier
b7cb006958
test_only_commit_gpt_edited_file
2023-08-18 07:52:25 -07:00
Paul Gauthier
1460cd0055
test_new_file_edit_one_commit
2023-08-18 07:46:39 -07:00
Paul Gauthier
14d19e22b2
improved tests
2023-08-17 11:28:43 -07:00
Paul Gauthier
17c275b987
improved tests
2023-08-17 11:23:45 -07:00
Paul Gauthier
3401395e61
fix wholefile tests
2023-08-17 11:08:50 -07:00
Paul Gauthier
6c2923ff70
remove test for should_dirty_commit
2023-08-17 10:43:12 -07:00
Paul Gauthier
6e9fbdcb6a
fixed spurious "Adding to git" messages when running aider in subdir of repo
2023-08-17 08:32:44 -07:00
Paul Gauthier
fed24aa444
lint
2023-08-10 16:53:34 -03:00
Paul Gauthier
a1da6cab24
ensure we diff properly in all cases, with tests #191
2023-08-10 15:33:53 -03:00
Paul Gauthier
7924900bc4
updated tests, disabled send cache
2023-08-10 12:27:46 -03:00
Paul Gauthier
77be993708
Merge branch 'main' into indent-bad-edit
2023-08-08 12:43:57 -03:00
Paul Gauthier
af854182dc
added failing test case for diffs of empty repo with new file added
2023-08-08 08:20:26 -03:00