From f46e3dea1118cc5fb89461e9fdf6e68f9bb352e6 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 21 Aug 2024 21:45:54 -0700 Subject: [PATCH] refactor: Remove ApplyShellCommandsError handling from test --- tests/basic/test_main.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/basic/test_main.py b/tests/basic/test_main.py index edbd32a7d..1f8545884 100644 --- a/tests/basic/test_main.py +++ b/tests/basic/test_main.py @@ -591,11 +591,10 @@ class TestMain(TestCase): shell_md = Path("shell.md") shell_md.write_text("```bash\ntouch file.txt\n```") - with self.assertRaises(ApplyShellCommandsError): - main( - ["--apply", "shell.md", "--yes"], - input=DummyInput(), - output=DummyOutput(), - ) + main( + ["--apply", "shell.md", "--yes"], + input=DummyInput(), + output=DummyOutput(), + ) - self.assertFalse(Path("file.txt").exists()) + self.assertTrue(Path("file.txt").exists())