Commit Graph

2 Commits

Author SHA1 Message Date
Devin AI
e2dc969017 Add storage isolation to MCP tests to prevent interference
Add autouse fixture to isolate CREWAI_STORAGE_DIR in MCP test modules.
This prevents any potential interference with other tests that use the same storage directory.

Co-Authored-By: João <joao@crewai.com>
2025-11-18 12:10:14 +00:00
Devin AI
54c29e843e Fix SSE transport invalid parameter issue
Remove terminate_on_close parameter from sse_client call in SSETransport.
This parameter is only valid for streamable HTTP transport, not for SSE transport.

Fixes #3938

Changes:
- Remove terminate_on_close=True from sse_client() call in SSETransport.connect()
- Add comprehensive unit tests for SSETransport that mock sse_client and verify correct parameters
- Add error-path tests to ensure Agent._get_native_mcp_tools raises proper RuntimeError instead of UnboundLocalError when connection fails

Co-Authored-By: João <joao@crewai.com>
2025-11-18 12:04:45 +00:00