From 7f88bb6c5d8c209c7aa98d40cc8285f7f44371a8 Mon Sep 17 00:00:00 2001 From: cpacker Date: Tue, 5 Mar 2024 13:05:59 -0800 Subject: [PATCH] skip autogen test if no oai secret --- tests/test_autogen_integration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_autogen_integration.py b/tests/test_autogen_integration.py index cee8bea698..4bf0b0aabc 100644 --- a/tests/test_autogen_integration.py +++ b/tests/test_autogen_integration.py @@ -4,7 +4,9 @@ import pytest +@pytest.mark.skipif(not os.getenv("OPENAI_API_KEY"), reason="Missing OpenAI API key") def test_agent_groupchat(): + # Define the path to the script you want to test script_path = "memgpt/autogen/examples/agent_groupchat.py"