From 06934a9c2dda5a220d1379509412d16124819e13 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 18:54:37 -0400 Subject: [PATCH] style: Apply linter formatting to test_commands.py --- tests/basic/test_commands.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index d5020f64a..37ac18412 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -745,13 +745,23 @@ class TestCommands(TestCase): commands.cmd_read(str(test_file)) # Check if the file was added to abs_read_only_fnames - self.assertTrue(any(os.path.samefile(str(test_file.resolve()), fname) for fname in coder.abs_read_only_fnames)) + self.assertTrue( + any( + os.path.samefile(str(test_file.resolve()), fname) + for fname in coder.abs_read_only_fnames + ) + ) # Test dropping the read-only file commands.cmd_drop(str(test_file)) # Check if the file was removed from abs_read_only_fnames - self.assertFalse(any(os.path.samefile(str(test_file.resolve()), fname) for fname in coder.abs_read_only_fnames)) + self.assertFalse( + any( + os.path.samefile(str(test_file.resolve()), fname) + for fname in coder.abs_read_only_fnames + ) + ) def test_cmd_read_with_external_file(self): with tempfile.NamedTemporaryFile(mode="w", delete=False) as external_file: