mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
added missing import
This commit is contained in:
parent
bcf258f1c6
commit
7e75cfb1fa
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
import os
|
||||
import unittest
|
||||
from unittest.mock import MagicMock
|
||||
from aider.coder import Coder
|
||||
|
||||
|
||||
class TestCoder(unittest.TestCase):
|
||||
def test_check_for_file_mentions(self):
|
||||
# Mock the IO object
|
||||
|
@ -18,11 +20,12 @@ class TestCoder(unittest.TestCase):
|
|||
coder.repo = mock_repo
|
||||
|
||||
# Call the check_for_file_mentions method
|
||||
result = coder.check_for_file_mentions("Please check file1.txt and file2.py")
|
||||
coder.check_for_file_mentions("Please check file1.txt and 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)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue