refactor: Remove ApplyShellCommandsError handling from test

This commit is contained in:
Paul Gauthier (aider) 2024-08-21 21:45:54 -07:00
parent b54fc0d848
commit f46e3dea11

View file

@ -591,11 +591,10 @@ class TestMain(TestCase):
shell_md = Path("shell.md") shell_md = Path("shell.md")
shell_md.write_text("```bash\ntouch file.txt\n```") shell_md.write_text("```bash\ntouch file.txt\n```")
with self.assertRaises(ApplyShellCommandsError):
main( main(
["--apply", "shell.md", "--yes"], ["--apply", "shell.md", "--yes"],
input=DummyInput(), input=DummyInput(),
output=DummyOutput(), output=DummyOutput(),
) )
self.assertFalse(Path("file.txt").exists()) self.assertTrue(Path("file.txt").exists())