From e45f7c68f9327ccb3cdc3cc2decf09eb218ba829 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:31:38 +0000 Subject: [PATCH] Fix test: Use valid MCP reference in test_agent_kickoff_async_includes_platform_and_mcp_tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change mcps parameter from ['test_mcp'] to ['crewai-amp:dummy'] to pass validation - Add assertions to verify get_platform_tools and get_mcp_tools are called - MCP references must start with 'https://' or 'crewai-amp:' per validation rules Co-Authored-By: João --- lib/crewai/tests/agents/test_agent_multimodal_kickoff.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/crewai/tests/agents/test_agent_multimodal_kickoff.py b/lib/crewai/tests/agents/test_agent_multimodal_kickoff.py index 00619d737..9ae0896c5 100644 --- a/lib/crewai/tests/agents/test_agent_multimodal_kickoff.py +++ b/lib/crewai/tests/agents/test_agent_multimodal_kickoff.py @@ -279,7 +279,7 @@ def test_agent_kickoff_async_includes_platform_and_mcp_tools(mock_lite_agent): goal="test goal", backstory="test backstory", apps=["test_app"], - mcps=["test_mcp"], + mcps=["crewai-amp:dummy"], multimodal=True, ) @@ -291,6 +291,9 @@ def test_agent_kickoff_async_includes_platform_and_mcp_tools(mock_lite_agent): call_kwargs = mock_lite_agent.call_args[1] tools = call_kwargs["tools"] + mock_platform_tools.assert_called_once() + mock_mcp_tools.assert_called_once() + assert any(isinstance(tool, PlatformTool) for tool in tools) assert any(isinstance(tool, MCPTool) for tool in tools) assert any(isinstance(tool, AddImageTool) for tool in tools)