mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +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")
|
added_read_only.write_text("Added read-only file")
|
||||||
|
|
||||||
# Initialize commands with original read-only files
|
# Initialize commands with original read-only files
|
||||||
commands = Commands(
|
commands = Commands(io, coder, original_read_only_fnames=[str(orig_read_only)])
|
||||||
io, coder, original_read_only_fnames=[str(orig_read_only)]
|
|
||||||
)
|
|
||||||
|
|
||||||
# Add files to the chat
|
# Add files to the chat
|
||||||
coder.abs_read_only_fnames.add(str(orig_read_only))
|
coder.abs_read_only_fnames.add(str(orig_read_only))
|
||||||
|
@ -1812,7 +1810,9 @@ class TestCommands(TestCase):
|
||||||
# Test bare drop command
|
# Test bare drop command
|
||||||
with mock.patch.object(io, "tool_output") as mock_tool_output:
|
with mock.patch.object(io, "tool_output") as mock_tool_output:
|
||||||
commands.cmd_drop("")
|
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
|
# Verify that original read-only file is preserved, but other files are dropped
|
||||||
self.assertEqual(len(coder.abs_fnames), 0)
|
self.assertEqual(len(coder.abs_fnames), 0)
|
||||||
|
@ -1830,9 +1830,7 @@ class TestCommands(TestCase):
|
||||||
orig_read_only.write_text("Original read-only file")
|
orig_read_only.write_text("Original read-only file")
|
||||||
|
|
||||||
# Initialize commands with original read-only files
|
# Initialize commands with original read-only files
|
||||||
commands = Commands(
|
commands = Commands(io, coder, original_read_only_fnames=[str(orig_read_only)])
|
||||||
io, coder, original_read_only_fnames=[str(orig_read_only)]
|
|
||||||
)
|
|
||||||
|
|
||||||
# Add file to the chat
|
# Add file to the chat
|
||||||
coder.abs_read_only_fnames.add(str(orig_read_only))
|
coder.abs_read_only_fnames.add(str(orig_read_only))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue