mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
fix: Remove unused mock variables and split long comment lines in test_commands.py
This commit is contained in:
parent
4253d98a73
commit
55f63395c7
1 changed files with 4 additions and 5 deletions
|
@ -1788,10 +1788,10 @@ class TestCommands(TestCase):
|
|||
self.assertEqual(len(coder.done_messages), 1)
|
||||
|
||||
# Test reset command
|
||||
with mock.patch.object(io, "tool_output") as mock_tool_output:
|
||||
commands.cmd_reset("")
|
||||
commands.cmd_reset("")
|
||||
|
||||
# Verify that original read-only file is preserved, but other files and messages are cleared
|
||||
# Verify that original read-only file is preserved
|
||||
# but other files and messages are cleared
|
||||
self.assertEqual(len(coder.abs_fnames), 0)
|
||||
self.assertEqual(len(coder.abs_read_only_fnames), 1)
|
||||
self.assertIn(str(orig_read_only), coder.abs_read_only_fnames)
|
||||
|
@ -1831,8 +1831,7 @@ class TestCommands(TestCase):
|
|||
self.assertEqual(len(coder.done_messages), 1)
|
||||
|
||||
# Test reset command
|
||||
with mock.patch.object(io, "tool_output") as mock_tool_output:
|
||||
commands.cmd_reset("")
|
||||
commands.cmd_reset("")
|
||||
|
||||
# Verify that all files and messages are cleared
|
||||
self.assertEqual(len(coder.abs_fnames), 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue