mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
switch all to resolve
This commit is contained in:
parent
d5921f1a9a
commit
4b3fdc0f88
2 changed files with 12 additions and 8 deletions
|
@ -59,11 +59,11 @@ class TestCommands(TestCase):
|
|||
commands.cmd_add("*.py")
|
||||
|
||||
# Check if the Python files have been added to the chat session
|
||||
self.assertIn(os.path.abspath("test1.py"), coder.abs_fnames)
|
||||
self.assertIn(os.path.abspath("test2.py"), coder.abs_fnames)
|
||||
self.assertIn(str(Path("test1.py").resolve()), coder.abs_fnames)
|
||||
self.assertIn(str(Path("test2.py").resolve()), coder.abs_fnames)
|
||||
|
||||
# Check if the text file has not been added to the chat session
|
||||
self.assertNotIn(os.path.abspath("test.txt"), coder.abs_fnames)
|
||||
self.assertNotIn(str(Path("test.txt").resolve()), coder.abs_fnames)
|
||||
|
||||
def test_cmd_add_no_match(self):
|
||||
# Initialize the Commands and InputOutput objects
|
||||
|
@ -103,7 +103,6 @@ class TestCommands(TestCase):
|
|||
# Call the cmd_drop method with a glob pattern
|
||||
commands.cmd_drop("*2.py")
|
||||
|
||||
# Check if the Python files have been removed from the chat session
|
||||
self.assertIn(str(Path("test1.py").resolve()), coder.abs_fnames)
|
||||
self.assertNotIn(str(Path("test2.py").resolve()), coder.abs_fnames)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue