From e9090f8d61d487e398666b3e7d231a49fafdf677 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 21 Jul 2023 14:32:20 -0300 Subject: [PATCH] Refactored creating a Coder object and getting tracked files in test_repo.py. --- tests/test_repo.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/test_repo.py b/tests/test_repo.py index 5cacd9a1b..f711527b7 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -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]