Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(py): tests

jkomynodbe39577f8d2
diff --git a/python/tests/test_gemini_provider.py b/python/tests/test_gemini_provider.py
index ad9896eda..8b4774f6c 100644
--- a/python/tests/test_gemini_provider.py
+++ b/python/tests/test_gemini_provider.py
@@ -18,6 +18,13 @@ from composio.client.types import Tool, tool_list_response
from composio.core.models.base import allow_tracking
from composio.core.provider import AgenticProvider
+try:
+ import composio_gemini as _composio_gemini # noqa: F401
+
+ HAS_COMPOSIO_GEMINI = True
+except ImportError:
+ HAS_COMPOSIO_GEMINI = False
+
try:
from google.genai import types as genai_types
@@ -26,7 +33,12 @@ except ImportError:
genai_types = None # type: ignore[assignment]
HAS_GENAI = False
-pytestmark = pytest.mark.gemini
+pytestmark = [
+ pytest.mark.gemini,
+ pytest.mark.skipif(
+ not HAS_COMPOSIO_GEMINI, reason="composio_gemini package not installed"
+ ),
+]
requires_genai = pytest.mark.skipif(
not HAS_GENAI, reason="google-genai package not installed"