From b1dedee9ee25d59198d52dbbefaac2d0c3a9713d Mon Sep 17 00:00:00 2001 From: Hemang Date: Wed, 19 Feb 2025 17:39:46 +0100 Subject: [PATCH] Add @pytest.mark.skipif to the openai image chat completion test. --- tests/open_ai/test_chat_without_tool_calls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/open_ai/test_chat_without_tool_calls.py b/tests/open_ai/test_chat_without_tool_calls.py index 3a11223..f6e43cb 100644 --- a/tests/open_ai/test_chat_without_tool_calls.py +++ b/tests/open_ai/test_chat_without_tool_calls.py @@ -79,6 +79,7 @@ async def test_chat_completion(context, explorer_api_url, proxy_url, do_stream): ] +@pytest.mark.skipif(not os.getenv("OPENAI_API_KEY"), reason="No OPENAI_API_KEY set") async def test_chat_completion_with_image(context, explorer_api_url, proxy_url): """Test the chat completions proxy works with image.""" dataset_name = "test-dataset-open-ai-" + str(uuid.uuid4())