mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
style: Fix regex string formatting in test commands
This commit is contained in:
parent
94a49e601c
commit
d75e75190d
1 changed files with 6 additions and 2 deletions
|
@ -749,7 +749,9 @@ class TestCommands(TestCase):
|
|||
self.assertTrue(Path(session_file).exists())
|
||||
with open(session_file, encoding=io.encoding) as f:
|
||||
commands_text = f.read()
|
||||
commands_text = re.sub(r'/add +', '/add ', commands_text) # Normalize add command spaces
|
||||
commands_text = re.sub(
|
||||
r"/add +", "/add ", commands_text
|
||||
) # Normalize add command spaces
|
||||
self.assertIn("/add file1.txt", commands_text)
|
||||
# Split commands and check each one
|
||||
for line in commands_text.splitlines():
|
||||
|
@ -823,7 +825,9 @@ class TestCommands(TestCase):
|
|||
self.assertTrue(Path(session_file).exists())
|
||||
with open(session_file, encoding=io.encoding) as f:
|
||||
commands_text = f.read()
|
||||
commands_text = re.sub(r'/add +', '/add ', commands_text) # Normalize add command spaces
|
||||
commands_text = re.sub(
|
||||
r"/add +", "/add ", commands_text
|
||||
) # Normalize add command spaces
|
||||
self.assertIn("/add internal1.txt", commands_text)
|
||||
# Split commands and check each one
|
||||
for line in commands_text.splitlines():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue