mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
![]() # Context: USER: don't compare the result string. check that coder.abs_fnames now contains both files ASSISTANT: To update the test to check if `coder.abs_fnames` contains both files, modify the test as follows: ```python tests/test_coder.py <<<<<<< ORIGINAL # Check if the result is as expected self.assertEqual(result, "Added files: file1.txt, file2.py") ======= # Check if coder.abs_fnames contains both files expected_files = {os.path.abspath("file1.txt"), os.path.abspath("file2.py")} self.assertEqual(coder.abs_fnames, expected_files) >>>>>>> UPDATED ``` This change will ensure that the test checks if `coder.abs_fnames` contains both files instead of comparing the result string. |
||
---|---|---|
.. | ||
__init__.py | ||
test_coder.py | ||
test_commands.py | ||
test_main.py | ||
test_repomap.py | ||
test_utils.py |