mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: format code with black
This commit is contained in:
parent
d01e9ef7a4
commit
7815087444
1 changed files with 6 additions and 2 deletions
|
@ -635,7 +635,9 @@ class TestMain(TestCase):
|
||||||
shell_md = Path("shell.md")
|
shell_md = Path("shell.md")
|
||||||
shell_md.write_text("```bash\ntouch no_suggest_file.txt\n```")
|
shell_md.write_text("```bash\ntouch no_suggest_file.txt\n```")
|
||||||
|
|
||||||
with patch("aider.coders.base_coder.Coder.handle_shell_commands") as mock_handle_shell_commands:
|
with patch(
|
||||||
|
"aider.coders.base_coder.Coder.handle_shell_commands"
|
||||||
|
) as mock_handle_shell_commands:
|
||||||
main(
|
main(
|
||||||
["--apply", "shell.md", "--no-git"],
|
["--apply", "shell.md", "--no-git"],
|
||||||
input=DummyInput(),
|
input=DummyInput(),
|
||||||
|
@ -645,7 +647,9 @@ class TestMain(TestCase):
|
||||||
# Make sure handle_shell_commands IS called when --no-suggest-shell-commands is not used
|
# Make sure handle_shell_commands IS called when --no-suggest-shell-commands is not used
|
||||||
mock_handle_shell_commands.assert_called_once()
|
mock_handle_shell_commands.assert_called_once()
|
||||||
|
|
||||||
with patch("aider.coders.base_coder.Coder.handle_shell_commands") as mock_handle_shell_commands:
|
with patch(
|
||||||
|
"aider.coders.base_coder.Coder.handle_shell_commands"
|
||||||
|
) as mock_handle_shell_commands:
|
||||||
main(
|
main(
|
||||||
["--apply", "shell.md", "--no-suggest-shell-commands", "--no-git"],
|
["--apply", "shell.md", "--no-suggest-shell-commands", "--no-git"],
|
||||||
input=DummyInput(),
|
input=DummyInput(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue