mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 13:25:00 +00:00
style: Format code and remove trailing whitespaces
This commit is contained in:
parent
2ce63e6ad3
commit
0fcbea03e5
1 changed files with 29 additions and 31 deletions
|
@ -1796,9 +1796,7 @@ class TestCommands(TestCase):
|
|||
added_read_only.write_text("Added read-only file")
|
||||
|
||||
# Initialize commands with original read-only files
|
||||
commands = Commands(
|
||||
io, coder, original_read_only_fnames=[str(orig_read_only)]
|
||||
)
|
||||
commands = Commands(io, coder, original_read_only_fnames=[str(orig_read_only)])
|
||||
|
||||
# Add files to the chat
|
||||
coder.abs_read_only_fnames.add(str(orig_read_only))
|
||||
|
@ -1812,7 +1810,9 @@ class TestCommands(TestCase):
|
|||
# Test bare drop command
|
||||
with mock.patch.object(io, "tool_output") as mock_tool_output:
|
||||
commands.cmd_drop("")
|
||||
mock_tool_output.assert_called_with("Dropping all files from the chat session except originally read-only files.")
|
||||
mock_tool_output.assert_called_with(
|
||||
"Dropping all files from the chat session except originally read-only files."
|
||||
)
|
||||
|
||||
# Verify that original read-only file is preserved, but other files are dropped
|
||||
self.assertEqual(len(coder.abs_fnames), 0)
|
||||
|
@ -1830,9 +1830,7 @@ class TestCommands(TestCase):
|
|||
orig_read_only.write_text("Original read-only file")
|
||||
|
||||
# Initialize commands with original read-only files
|
||||
commands = Commands(
|
||||
io, coder, original_read_only_fnames=[str(orig_read_only)]
|
||||
)
|
||||
commands = Commands(io, coder, original_read_only_fnames=[str(orig_read_only)])
|
||||
|
||||
# Add file to the chat
|
||||
coder.abs_read_only_fnames.add(str(orig_read_only))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue