Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | """Selftest fixture: one unauthenticated httpx request against the backend so |
| 2 | the sitecustomize shim must record a non-2xx composio line.""" |
| 3 | |
| 4 | import os |
| 5 | |
| 6 | import httpx |
| 7 | |
| 8 | base = os.environ.get("COMPOSIO_BASE_URL", "https://staging-backend.composio.dev") |
| 9 | with httpx.Client() as client: |
| 10 | response = client.get(f"{base}/api/v3/toolkits", headers={"x-api-key": "selftest-invalid-key"}) |
| 11 | print(f"trace-check: status {response.status_code}") |