Commit graph

662 commits

Author SHA1 Message Date
Paul Gauthier (aider)
d31eef3fc6 Mocked Path.home() in addition to setting os.environ["HOME"] in the test_env_file_override function. 2024-07-18 17:42:50 +01:00
Paul Gauthier
e36d47cfdb Added tests and fix for env file precedence #868 2024-07-18 17:20:58 +01:00
Paul Gauthier (aider)
c9bcc1aa57 Added a test to check the .env file override behavior as described in the documentation. 2024-07-18 17:07:38 +01:00
Paul Gauthier
397c5d5921 added a test for /tokens #863 2024-07-18 16:54:26 +01:00
Paul Gauthier (aider)
cdd45c7d28 Added a test for the cmd_tokens method that creates a small Git repository, adds files to the chat, and verifies that the output of cmd_tokens includes the repository map information and details about the added files. 2024-07-18 16:39:42 +01:00
Paul Gauthier
c99c5db35c updated coder test 2024-07-18 16:35:27 +01:00
Paul Gauthier (aider)
6fdb4f8214 Handled case where first commit cannot be undone 2024-07-18 16:32:47 +01:00
Paul Gauthier
3ce3799f8d Implemented checks to ensure files with uncommitted changes or not present in previous commit cannot be undone safely. 2024-07-18 16:32:45 +01:00
Paul Gauthier
e7f29c2dbc Added a new test case for cmd_undo with a newly committed file. 2024-07-18 16:17:20 +01:00
Paul Gauthier (aider)
9aeeaf383f Implemented a test that will trigger the bug described in issue #882. 2024-07-18 16:09:38 +01:00
Paul Gauthier (aider)
07550d6f5f Added tests to exercise all combinations of path formats for get_file_mentions and get_addable_relative_files, and updated the get_file_mentions method to handle both Unix and Windows path formats. 2024-07-18 15:19:32 +01:00
Paul Gauthier
896e79bcd1 use pytest.ini testpaths to order testing 2024-07-16 10:33:42 +01:00