mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: handle Windows path formatting in test cases
This commit is contained in:
parent
e6c191bdc6
commit
eb0389938c
1 changed files with 3 additions and 1 deletions
|
@ -325,7 +325,9 @@ class TestCoder(unittest.TestCase):
|
|||
# {test_files[1]},
|
||||
# ),
|
||||
# Files with Windows-style paths
|
||||
(f"Edit the file {test_files[2].replace('/', r'\\')}", {test_files[2]}),
|
||||
# Pre-format the Windows path to avoid backslash issues in f-string expressions
|
||||
windows_path = test_files[2].replace('/', '\\')
|
||||
(f"Edit the file {windows_path}", {test_files[2]}),
|
||||
# Files with different quote styles
|
||||
(f'Check "{test_files[5]}" now', {test_files[5]}),
|
||||
# All files in one complex message
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue