mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
feat: use GitTemporaryDirectory in test_cmd_add_read_only_file
This commit is contained in:
parent
42d16ebb99
commit
1e8be8a429
1 changed files with 31 additions and 33 deletions
|
@ -538,6 +538,7 @@ class TestCommands(TestCase):
|
|||
self.assertEqual(coder.abs_fnames, set())
|
||||
|
||||
def test_cmd_add_read_only_file(self):
|
||||
with GitTemporaryDirectory():
|
||||
# Initialize the Commands and InputOutput objects
|
||||
io = InputOutput(pretty=False, yes=True)
|
||||
from aider.coders import Coder
|
||||
|
@ -578,9 +579,6 @@ class TestCommands(TestCase):
|
|||
)
|
||||
)
|
||||
|
||||
# Clean up
|
||||
test_file.unlink()
|
||||
|
||||
def test_cmd_test_unbound_local_error(self):
|
||||
with ChdirTemporaryDirectory():
|
||||
io = InputOutput(pretty=False, yes=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue