From 55f63395c7aa04ec2ea179d6c67063ee414f2431 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 11 Mar 2025 19:25:46 -0700 Subject: [PATCH] fix: Remove unused mock variables and split long comment lines in test_commands.py --- tests/basic/test_commands.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index 04a3c8a8d..cc37495a4 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -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)