Commit graph

1119 commits

Author SHA1 Message Date
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)
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 (aider)
1557bb0c00 feat: add tests for /read and /drop commands 2024-08-09 16:38:42 -04:00
Paul Gauthier
109f197f52 feat: Add tests for simple_send_with_retries function 2024-08-08 15:22:58 -03:00
Paul Gauthier
2369489321 Clean up countdown 2024-08-08 15:19:24 -03: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
Paul Gauthier (aider)
45f6f88a46 feat: Add tests for --map-tokens option 2024-08-06 09:04:01 -03:00
Paul Gauthier (aider)
04fff71e73 feat: Add tests for subtree_only 2024-08-06 08:47:39 -03:00
Christian Clauss
9364ce1f15 Fix typos discovered by codespell 2024-08-05 13:37:28 +02: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
da3e507ec4 Revert "rename simple_send_with_retries -> send_with_retries"
This reverts commit d619edf6e9.
2024-08-02 10:49:44 -03:00
Paul Gauthier
d619edf6e9 rename simple_send_with_retries -> send_with_retries 2024-08-02 10:35:10 -03:00
Paul Gauthier
008ae54a55 fix: Add time.sleep to wait for file changes to be detected 2024-08-01 17:20:38 -03:00
Paul Gauthier (aider)
97688b91ee style: Fix linter issues in test_main.py 2024-08-01 17:02:34 -03:00
Paul Gauthier (aider)
f14de907f3 fix: Use os.path.sep for portable path separator 2024-08-01 17:02:31 -03:00
Paul Gauthier (aider)
2a4b6da1d9 test: Ensure Linter is called with correct filename 2024-08-01 16:58:51 -03:00
Paul Gauthier
f696d0933f fix: Update test_lint_option to handle dirty file in root directory 2024-08-01 16:58:50 -03:00
Paul Gauthier (aider)
bb279d6899 feat: Add test for --lint option 2024-08-01 16:42:12 -03:00
Paul Gauthier (aider)
1a3221e400 fix: Remove unused import of InputOutput from aider.io 2024-08-01 15:46:59 -03:00
Paul Gauthier
1d875cc5f0 fix: Remove unnecessary assertions in test_scripting.py 2024-08-01 15:46:53 -03:00
Paul Gauthier (aider)
d2dc79978e style: Fix linter issues in test_scripting.py 2024-08-01 15:44:58 -03:00
Paul Gauthier (aider)
a4b6dea54d feat: use GitTemporaryDirectory for scripting tests 2024-08-01 15:44:55 -03:00
Paul Gauthier
99ce27f151 fix: Set partial_response_function_call to None in mock_send_side_effect 2024-08-01 15:44:54 -03:00
Paul Gauthier (aider)
bde6bb5c18 style: format code with linter 2024-08-01 15:42:48 -03:00
Paul Gauthier (aider)
96940a319a fix: Handle functions argument in test mocks 2024-08-01 15:42:44 -03:00
Paul Gauthier
8a6f1337f6 fix: Move mock_send_side_effect definition before its usage 2024-08-01 15:42:43 -03:00
Paul Gauthier (aider)
58a732312b fix: Remove unused import of MagicMock 2024-08-01 15:40:45 -03:00
Paul Gauthier (aider)
f23c1c94fa style: format code 2024-08-01 15:40:25 -03:00
Paul Gauthier (aider)
830868605b fix: Set coder.partial_response_content in mocked send() method 2024-08-01 15:40:23 -03:00
Paul Gauthier (aider)
82a0e5ec40 style: format code to improve readability 2024-08-01 15:37:37 -03:00
Paul Gauthier (aider)
4eb8be9d06 fix: Mock Coder.send() instead of Coder.create and Model 2024-08-01 15:37:34 -03:00
Paul Gauthier (aider)
b29a6e8fa4 style: Format Python code with black 2024-08-01 15:36:29 -03:00
Paul Gauthier (aider)
a480b90217 feat: add unit tests for Python scripting API 2024-08-01 15:36:26 -03:00
Paul Gauthier
f7d0f0c604 feat: Add basic scripting tests 2024-08-01 15:36:24 -03:00
Paul Gauthier
aad52eaae2 fix: Update Coder import path in test_main.py 2024-08-01 15:32:39 -03:00
Paul Gauthier
387b2710b0 fix: Refactor Coder creation to use GitRepo instance 2024-08-01 15:30:49 -03:00
Paul Gauthier
283ac13d2c Fix tests to use new GitRepo 2024-08-01 15:25:31 -03:00