mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
wip: Added import subprocess to test_main.py.
This commit is contained in:
parent
fa2f76c107
commit
09fbbc0dae
1 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,8 @@ import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from aider.main import main
|
from aider.main import main
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
class TestMain(TestCase):
|
class TestMain(TestCase):
|
||||||
def test_main_with_empty_dir_no_files_on_command(self):
|
def test_main_with_empty_dir_no_files_on_command(self):
|
||||||
|
@ -24,8 +26,6 @@ class TestMain(TestCase):
|
||||||
sys.stdin = save_stdin
|
sys.stdin = save_stdin
|
||||||
self.assertTrue(os.path.exists('foo.txt'))
|
self.assertTrue(os.path.exists('foo.txt'))
|
||||||
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
def test_main_with_empty_git_dir_new_file(self):
|
def test_main_with_empty_git_dir_new_file(self):
|
||||||
with tempfile.TemporaryDirectory() as temp_dir:
|
with tempfile.TemporaryDirectory() as temp_dir:
|
||||||
os.chdir(temp_dir)
|
os.chdir(temp_dir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue