fixed test_repo

This commit is contained in:
Paul Gauthier 2024-04-18 14:55:56 -07:00
parent cb547da90c
commit 733c09d30f
2 changed files with 6 additions and 1 deletions

View file

@ -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]

View file

@ -1,3 +1,4 @@
[pytest] [pytest]
norecursedirs = tmp.* build benchmark norecursedirs = tmp.* build benchmark
addopts = -p no:warnings