This commit is contained in:
Paul Gauthier 2023-05-19 09:09:36 -07:00
parent 5d06cab9e6
commit 6900e7a282

View file

@ -1,23 +0,0 @@
import os
import tempfile
from unittest import TestCase
from aider.io import InputOutput
from aider.coder import Coder
from aider.commands import Commands
class TestCommands(TestCase):
def test_cmd_add(self):
with tempfile.TemporaryDirectory() as tmpdir:
original_cwd = os.getcwd()
os.chdir(tmpdir)
io = InputOutput(pretty=True, yes=True)
coder = Coder(io)
commands = Commands(io, coder)
commands.cmd_add('foo.txt bar.txt')
self.assertTrue(os.path.exists('foo.txt'))
self.assertTrue(os.path.exists('bar.txt'))
os.chdir(original_cwd)