From bfcff84b286523e020d6d8d2ea31923b1d0099ce Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 8 May 2025 09:42:18 -0700 Subject: [PATCH] fix: Patch rich.columns.Columns where it is used --- tests/basic/test_io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/basic/test_io.py b/tests/basic/test_io.py index d1d1f9686..6131f5d65 100644 --- a/tests/basic/test_io.py +++ b/tests/basic/test_io.py @@ -512,7 +512,7 @@ class TestInputOutputFormatFiles(unittest.TestCase): self.assertEqual(normalized_actual_output, expected_output) - @patch("rich.columns.Columns") + @patch("aider.io.Columns") @patch("os.path.abspath") @patch("os.path.join") def test_format_files_for_input_pretty_true_no_files( @@ -522,7 +522,7 @@ class TestInputOutputFormatFiles(unittest.TestCase): io.format_files_for_input([], []) mock_columns.assert_not_called() - @patch("rich.columns.Columns") + @patch("aider.io.Columns") @patch("os.path.abspath") @patch("os.path.join") def test_format_files_for_input_pretty_true_editable_only( @@ -543,7 +543,7 @@ class TestInputOutputFormatFiles(unittest.TestCase): self.assertIsInstance(renderables[1], Text) self.assertEqual(renderables[1].plain, "edit[markup].txt") - @patch("rich.columns.Columns") + @patch("aider.io.Columns") @patch("os.path.abspath") @patch("os.path.join") def test_format_files_for_input_pretty_true_readonly_only( @@ -573,7 +573,7 @@ class TestInputOutputFormatFiles(unittest.TestCase): self.assertIsInstance(renderables[2], Text) self.assertEqual(renderables[2].plain, "ro[markup].txt") - @patch("rich.columns.Columns") + @patch("aider.io.Columns") @patch("os.path.abspath") @patch("os.path.join") def test_format_files_for_input_pretty_true_mixed_files(