aider/tests
Your Name 13ac5f0b60 Add --message-file flag and unit test
This commit introduces the `--message-file` flag to the `aider` tool, allowing users to specify a file containing the message to send to GPT. This feature processes the reply and then exits, disabling the chat mode. The implementation includes reading the content of the specified file and using it as the prompt message.

Additionally, a unit test has been added to `tests/test_main.py` to ensure the correct functionality of the `--message-file` flag. The test includes necessary mocks to handle non-interactive environments and verifies that the tool behaves as expected when a message file is provided.

This enhancement improves the usability of the `aider` tool for users who prefer or require non-interactive execution, such as in scripting or automated workflows.
2023-12-05 23:55:10 +01:00
..
__init__.py aider: Added empty __init__.py file to tests directory to fix ModuleNotFoundError when running tests. 2023-05-11 17:12:42 -07:00
test_coder.py handle submodules (or other dirs) which are git tracked #336 2023-11-15 13:34:29 -08:00
test_commands.py /add and /drop should work on untracked files in a repo (without committing them) 2023-11-15 13:06:22 -08:00
test_editblock.py find_original_update_blocks now accepts fence param, raises on mangled <source>filename.ext #317 2023-11-02 12:05:39 -07:00
test_io.py Armor AutoCompleter against unicode errors #305 2023-11-03 07:26:21 -07:00
test_main.py Add --message-file flag and unit test 2023-12-05 23:55:10 +01:00
test_models.py lint 2023-09-01 15:53:19 -07:00
test_repo.py Give up testing aiderignore caching in github actions 2023-10-18 12:28:24 -07:00
test_repomap.py do not include added files in the repo map #315 2023-11-15 13:06:22 -08:00
test_sendchat.py move tests to test_sendchat.py 2023-07-21 14:17:14 -03:00
test_wholefile.py fix wholefile tests 2023-08-17 11:08:50 -07:00
utils.py cleanup inside GitTemporaryDirectory 2023-11-02 16:24:28 -07:00