From 3f5e4130ea52c9ba580328267a228b3ccf2339c7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 27 May 2023 06:25:16 -0700 Subject: [PATCH] fixed test --- tests/test_commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 7dbb62f2d..a59a3d4ad 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1,7 +1,6 @@ import os import tempfile from unittest import TestCase -from unittest.mock import MagicMock from aider.commands import Commands from aider.io import InputOutput @@ -16,7 +15,7 @@ class TestCommands(TestCase): io = InputOutput(pretty=False, yes=True) from aider.coder import Coder - coder = Coder(io) + coder = Coder(io, openai_api_key="deadbeef") commands = Commands(io, coder) # Call the cmd_add method with 'foo.txt' and 'bar.txt' as a single string