mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
test: Add Windows path handling in file mention tests
This commit is contained in:
parent
871c6d56dc
commit
7302280417
1 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,9 @@ class TestCoder(unittest.TestCase):
|
|||
"special_chars!@#.md",
|
||||
]
|
||||
|
||||
# Pre-format the Windows path to avoid backslash issues in f-string expressions
|
||||
windows_path = test_files[2].replace('/', '\\')
|
||||
|
||||
for fname in test_files:
|
||||
fpath = Path(fname)
|
||||
fpath.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue