mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: strip whitespace from shell command in test assertion
This commit is contained in:
parent
ac9aaff3cf
commit
825a94f7f0
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ This command will print 'Hello, World!' to the console."""
|
|||
|
||||
# Check if the shell command was added to the list
|
||||
self.assertEqual(len(coder.shell_commands), 1)
|
||||
self.assertEqual(coder.shell_commands[0], 'echo "Hello, World!"')
|
||||
self.assertEqual(coder.shell_commands[0].strip(), 'echo "Hello, World!"')
|
||||
|
||||
# Check if handle_shell_commands was called with the correct argument
|
||||
coder.handle_shell_commands.assert_called_once_with('echo "Hello, World!"', ANY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue