From 186536b9dfc03fc70e5868ed1c022d9f9bf05723 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Fri, 27 Sep 2024 13:47:43 +0200 Subject: [PATCH] Update OpenAPITool tests (#105) --- test/components/tools/openapi/test_openapi_tool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/components/tools/openapi/test_openapi_tool.py b/test/components/tools/openapi/test_openapi_tool.py index a735f096..396915da 100644 --- a/test/components/tools/openapi/test_openapi_tool.py +++ b/test/components/tools/openapi/test_openapi_tool.py @@ -217,6 +217,7 @@ def test_run_live_meteo_forecast(self, provider: str): @pytest.mark.integration @pytest.mark.parametrize("provider", ["openai", "anthropic", "cohere"]) + @pytest.mark.unstable("This test can be unstable due to free meteo service being down") def test_run_live_meteo_forecast_with_non_normalized_operation_id(self, provider: str): """ Test that OpenAPITool can handle non-normalized operationIds (function names not accepted by LLMs). @@ -240,7 +241,7 @@ def test_run_live_meteo_forecast_with_non_normalized_operation_id(self, provider except json.JSONDecodeError: pytest.fail("Response content is not valid JSON") - + @pytest.mark.skipif(not os.environ.get("OPENAI_API_KEY", ""), reason="OPENAI_API_KEY not set or empty") def test_allowed_operations(self): """ Although the tool definition is generated from the OpenAPI spec and firecrawl's API has multiple operations,