refactor: Move windows_path variable outside test cases tuple

This commit is contained in:
Paul Gauthier (aider) 2025-03-25 11:01:21 -10:00
parent eb0389938c
commit 871c6d56dc

View file

@ -325,8 +325,6 @@ class TestCoder(unittest.TestCase):
# {test_files[1]},
# ),
# Files with Windows-style paths
# 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]}),