Skip to content

Commit

Permalink
Update OpenAPITool tests (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje authored Sep 27, 2024
1 parent 0e669c2 commit 186536b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/components/tools/openapi/test_openapi_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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,
Expand Down

0 comments on commit 186536b

Please sign in to comment.