From d098a4cd800b2153ab1c60fb3711885d55034762 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 4 Oct 2024 14:04:02 -0700 Subject: [PATCH] test: add DummyInput and DummyOutput to TestHelp setup --- tests/help/test_help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/help/test_help.py b/tests/help/test_help.py index 5a90d2ebf..83a4138b1 100644 --- a/tests/help/test_help.py +++ b/tests/help/test_help.py @@ -1,6 +1,9 @@ import unittest from unittest.mock import MagicMock +from prompt_toolkit.input import DummyInput +from prompt_toolkit.output import DummyOutput + import aider from aider.coders import Coder from aider.commands import Commands @@ -12,7 +15,7 @@ from aider.models import Model class TestHelp(unittest.TestCase): @classmethod def setUpClass(cls): - io = InputOutput(pretty=False, yes=True) + io = InputOutput(pretty=False, yes=True, input=DummyInput(), output=DummyOutput()) GPT35 = Model("gpt-3.5-turbo")