mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 21:34:59 +00:00
Refactored creating a Coder object and getting tracked files in test_repo.py.
This commit is contained in:
parent
b9dc419f19
commit
e9090f8d61
1 changed files with 1 additions and 8 deletions
|
@ -79,15 +79,8 @@ class TestRepo(unittest.TestCase):
|
|||
|
||||
repo.git.commit("-m", "added")
|
||||
|
||||
# Create a Coder object on the temporary directory
|
||||
coder = Coder.create(
|
||||
models.GPT4,
|
||||
None,
|
||||
io=InputOutput(),
|
||||
fnames=[str(tempdir / filenames[0])],
|
||||
)
|
||||
|
||||
tracked_files = coder.get_tracked_files()
|
||||
tracked_files = AiderRepo(InputOutput(), [tempdir]).get_tracked_files()
|
||||
|
||||
# On windows, paths will come back \like\this, so normalize them back to Paths
|
||||
tracked_files = [Path(fn) for fn in tracked_files]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue