From 733c09d30fee9353a7acbd245114f51b2d775437 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 18 Apr 2024 14:55:56 -0700 Subject: [PATCH] fixed test_repo --- aider/repo.py | 6 +++++- pytest.ini | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/aider/repo.py b/aider/repo.py index 4538c16a3..7869091ea 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -5,6 +5,7 @@ import git import pathspec from aider import prompts, utils +from aider.models import Model from aider.sendchat import simple_send_with_retries 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): self.io = io - self.models = models + if models: + self.models = models + else: + self.models = [Model("gpt-3.5-turbo")] if git_dname: check_fnames = [git_dname] diff --git a/pytest.ini b/pytest.ini index 5ea365392..8fa4e613f 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,3 +1,4 @@ [pytest] norecursedirs = tmp.* build benchmark +addopts = -p no:warnings