mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 20:35:00 +00:00
refactor: Remove ApplyShellCommandsError handling from test
This commit is contained in:
parent
b54fc0d848
commit
f46e3dea11
1 changed files with 6 additions and 7 deletions
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue