mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
byebye
This commit is contained in:
parent
5d06cab9e6
commit
6900e7a282
1 changed files with 0 additions and 23 deletions
|
@ -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)
|
|
Loading…
Add table
Add a link
Reference in a new issue