mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
added import
This commit is contained in:
parent
f1b61d49e9
commit
db8fb97a38
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ import unittest
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
|
import git
|
||||||
import openai
|
import openai
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
@ -374,7 +375,9 @@ class TestCoder(unittest.TestCase):
|
||||||
repo.git.add(filename)
|
repo.git.add(filename)
|
||||||
|
|
||||||
# Create a Coder object on the temporary directory
|
# Create a Coder object on the temporary directory
|
||||||
coder = Coder.create(models.GPT4, None, io=InputOutput(), openai_api_key="fake_key", root=tempdir)
|
coder = Coder.create(
|
||||||
|
models.GPT4, None, io=InputOutput(), openai_api_key="fake_key", root=tempdir
|
||||||
|
)
|
||||||
|
|
||||||
# Assert that coder.get_tracked_files() returns the three filenames
|
# Assert that coder.get_tracked_files() returns the three filenames
|
||||||
self.assertEqual(set(coder.get_tracked_files()), set(filenames))
|
self.assertEqual(set(coder.get_tracked_files()), set(filenames))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue