aider/tests
Paul Gauthier 737c2e0b5f aider: Check that the latest commit message contains the filename.
# Aider chat conversation:

USER: do the todo

ASSISTANT: To complete the TODO task in the `test_new_file_commit_message` function, we need to check that the latest commit message contains the filename. We can do this by getting the latest commit message from the git repository and checking if the filename is in it.

Here is the change needed in the `tests/test_coder.py` file:

<source>python
tests/test_coder.py
<<<<<<< ORIGINAL
            # TODO: check that the latest commit message contains str(fname)
=======
            # Get the latest commit message
            commit_message = repo.head.commit.message
            # Check that the latest commit message contains the filename
            self.assertIn(str(fname), commit_message)
>>>>>>> UPDATED
</source>
2023-08-08 07:59:57 -03: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 aider: Check that the latest commit message contains the filename. 2023-08-08 07:59:57 -03:00
test_commands.py Fixed /commit after repo refactor, added test coverage 2023-08-04 06:39:04 -03:00
test_editblock.py added test_replace_part_with_missing_varied_leading_whitespace 2023-07-18 15:13:14 -03:00
test_io.py Fix test 2023-07-10 15:33:46 -07:00
test_main.py tests and bugfix 2023-07-24 17:47:53 -03:00
test_models.py More Model test cases 2023-06-21 14:13:34 -07:00
test_repo.py aider: Add None as the third argument in all calls to GitRepo. 2023-07-24 17:32:09 -03:00
test_repomap.py linting 2023-07-21 16:08:50 -03:00
test_sendchat.py move tests to test_sendchat.py 2023-07-21 14:17:14 -03:00
test_wholefile.py updated tests 2023-07-11 15:17:00 -07:00
utils.py tests and bugfix 2023-07-24 17:47:53 -03:00