mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
feat: Use GitTemporaryDirectory in test_cmd_read and test_cmd_read_with_external_file
This commit is contained in:
parent
61c124604d
commit
5365305440
1 changed files with 2 additions and 2 deletions
|
@ -732,7 +732,7 @@ class TestCommands(TestCase):
|
||||||
self.assertNotIn(fname3, str(coder.abs_fnames))
|
self.assertNotIn(fname3, str(coder.abs_fnames))
|
||||||
|
|
||||||
def test_cmd_read(self):
|
def test_cmd_read(self):
|
||||||
with ChdirTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
io = InputOutput(pretty=False, yes=False)
|
io = InputOutput(pretty=False, yes=False)
|
||||||
coder = Coder.create(self.GPT35, None, io)
|
coder = Coder.create(self.GPT35, None, io)
|
||||||
commands = Commands(io, coder)
|
commands = Commands(io, coder)
|
||||||
|
@ -759,7 +759,7 @@ class TestCommands(TestCase):
|
||||||
external_file_path = external_file.name
|
external_file_path = external_file.name
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with ChdirTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
io = InputOutput(pretty=False, yes=False)
|
io = InputOutput(pretty=False, yes=False)
|
||||||
coder = Coder.create(self.GPT35, None, io)
|
coder = Coder.create(self.GPT35, None, io)
|
||||||
commands = Commands(io, coder)
|
commands = Commands(io, coder)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue