@devries-cameron20 / composio-1 / commits / dbe39577f
Fork 0

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

jkomyno committed Feb 6, 2026 at 03:59 UTC dbe39577f8d29206b22b63141b7e8e998682be0e
1 file changed +13 -1
python/tests/test_gemini_provider.py
+13 -1
@@ -18,6 +18,13 @@ from composio.client.types import Tool, tool_list_response
18 from composio.core.models.base import allow_tracking
19 from composio.core.provider import AgenticProvider
20
21 +try:
22 + import composio_gemini as _composio_gemini # noqa: F401
23 +
24 + HAS_COMPOSIO_GEMINI = True
25 +except ImportError:
26 + HAS_COMPOSIO_GEMINI = False
27 +
28 try:
29 from google.genai import types as genai_types
30
@@ -26,7 +33,12 @@ except ImportError:
33 genai_types = None # type: ignore[assignment]
34 HAS_GENAI = False
35
29 -pytestmark = pytest.mark.gemini
36 +pytestmark = [
37 + pytest.mark.gemini,
38 + pytest.mark.skipif(
39 + not HAS_COMPOSIO_GEMINI, reason="composio_gemini package not installed"
40 + ),
41 +]
42
43 requires_genai = pytest.mark.skipif(
44 not HAS_GENAI, reason="google-genai package not installed"