mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
better test
This commit is contained in:
parent
7d8069d778
commit
1e0443cc86
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ from pathlib import Path
|
|||
from unittest import TestCase
|
||||
from unittest.mock import patch
|
||||
|
||||
import git
|
||||
from prompt_toolkit.input import DummyInput
|
||||
from prompt_toolkit.output import DummyOutput
|
||||
|
||||
|
@ -77,6 +78,8 @@ class TestMain(TestCase):
|
|||
git_root = Path(git_root).resolve()
|
||||
self.assertEqual(git_root, Path(self.tempdir).resolve())
|
||||
|
||||
self.assertTrue(git.Repo(self.tempdir))
|
||||
|
||||
def test_main_args(self):
|
||||
with patch("aider.main.Coder.create") as MockCoder:
|
||||
# --yes will just ok the git repo without blocking on input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue