mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +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))
|
||||
|
||||
def test_cmd_read(self):
|
||||
with ChdirTemporaryDirectory():
|
||||
with GitTemporaryDirectory():
|
||||
io = InputOutput(pretty=False, yes=False)
|
||||
coder = Coder.create(self.GPT35, None, io)
|
||||
commands = Commands(io, coder)
|
||||
|
@ -759,7 +759,7 @@ class TestCommands(TestCase):
|
|||
external_file_path = external_file.name
|
||||
|
||||
try:
|
||||
with ChdirTemporaryDirectory():
|
||||
with GitTemporaryDirectory():
|
||||
io = InputOutput(pretty=False, yes=False)
|
||||
coder = Coder.create(self.GPT35, None, io)
|
||||
commands = Commands(io, coder)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue