From e4caa99eebb73e65511bc19a01771a42f437906d Mon Sep 17 00:00:00 2001 From: Andres Caicedo Date: Thu, 20 Apr 2023 20:59:03 +0200 Subject: [PATCH] Update test_commands.py --- tests/unit/test_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index ecbac9b73bd9..5d3a8ca67820 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -9,7 +9,8 @@ @pytest.mark.integration_test def test_make_agent() -> None: - """Test the make_agent command""" + """Test that an agent can be created""" + # Use the mock agent manager to avoid creating a real agent with patch("openai.ChatCompletion.create") as mock: obj = MagicMock() obj.response.choices[0].messages[0].content = "Test message"