mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +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.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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue