mirror of
https://github.com/Aider-AI/aider
synced 2026-05-11 09:27:01 +02:00
wip: Added import subprocess to test_main.py.
This commit is contained in:
@@ -3,6 +3,8 @@ import sys
|
||||
import tempfile
|
||||
from unittest import TestCase
|
||||
from aider.main import main
|
||||
import subprocess
|
||||
|
||||
|
||||
class TestMain(TestCase):
|
||||
def test_main_with_empty_dir_no_files_on_command(self):
|
||||
@@ -24,8 +26,6 @@ class TestMain(TestCase):
|
||||
sys.stdin = save_stdin
|
||||
self.assertTrue(os.path.exists('foo.txt'))
|
||||
|
||||
import subprocess
|
||||
|
||||
def test_main_with_empty_git_dir_new_file(self):
|
||||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
os.chdir(temp_dir)
|
||||
|
||||
Reference in New Issue
Block a user