fix Coder.create

This commit is contained in:
Paul Gauthier 2023-07-11 08:21:16 -07:00
parent cb5d2450ec
commit 59a54f5f83

View file

@ -378,7 +378,11 @@ class TestCoder(unittest.TestCase):
# Create a Coder object on the temporary directory
coder = Coder.create(
models.GPT4, None, io=InputOutput(), openai_api_key="fake_key", root=tempdir
models.GPT4,
None,
io=InputOutput(),
openai_api_key="fake_key",
fnames=[str(tempdir / filenames[0])],
)
# Assert that coder.get_tracked_files() returns the three filenames