mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
fixed test_repo
This commit is contained in:
parent
cb547da90c
commit
733c09d30f
2 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,7 @@ import git
|
||||||
import pathspec
|
import pathspec
|
||||||
|
|
||||||
from aider import prompts, utils
|
from aider import prompts, utils
|
||||||
|
from aider.models import Model
|
||||||
from aider.sendchat import simple_send_with_retries
|
from aider.sendchat import simple_send_with_retries
|
||||||
|
|
||||||
from .dump import dump # noqa: F401
|
from .dump import dump # noqa: F401
|
||||||
|
@ -18,7 +19,10 @@ class GitRepo:
|
||||||
|
|
||||||
def __init__(self, io, fnames, git_dname, aider_ignore_file=None, models=None):
|
def __init__(self, io, fnames, git_dname, aider_ignore_file=None, models=None):
|
||||||
self.io = io
|
self.io = io
|
||||||
self.models = models
|
if models:
|
||||||
|
self.models = models
|
||||||
|
else:
|
||||||
|
self.models = [Model("gpt-3.5-turbo")]
|
||||||
|
|
||||||
if git_dname:
|
if git_dname:
|
||||||
check_fnames = [git_dname]
|
check_fnames = [git_dname]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
[pytest]
|
[pytest]
|
||||||
norecursedirs = tmp.* build benchmark
|
norecursedirs = tmp.* build benchmark
|
||||||
|
addopts = -p no:warnings
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue