mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
fix: Update autocomplete test to handle partial file names
This commit is contained in:
parent
d647ebf058
commit
0091ab004c
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ class TestInputOutput(unittest.TestCase):
|
|||
# Input text, Expected completion texts
|
||||
("/", ["/help", "/add", "/drop"]),
|
||||
("/a", ["/add"]),
|
||||
("/add ", ["file1.txt", "file2.txt"]),
|
||||
("/add f", ["file1.txt", "file2.txt"]),
|
||||
]
|
||||
|
||||
# Step 6: Iterate through test cases
|
||||
|
@ -71,7 +71,7 @@ class TestInputOutput(unittest.TestCase):
|
|||
completion_texts = [comp.text for comp in completions]
|
||||
|
||||
# Assert that the completions match expected results
|
||||
self.assertEqual(completion_texts, expected_completions)
|
||||
self.assertEqual(set(completion_texts), set(expected_completions))
|
||||
|
||||
def test_autocompleter_with_non_existent_file(self):
|
||||
root = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue