Test Git MCP tool availability.
()
| 420 | |
| 421 | @pytest.mark.asyncio |
| 422 | async def test_git_mcp_tool_availability(): |
| 423 | """Test Git MCP tool availability.""" |
| 424 | print("\n=== Testing Git MCP Tool Availability ===") |
| 425 | |
| 426 | try: |
| 427 | tools = await load_mcp_tools_async("mini_agent/config/mcp.json") |
| 428 | |
| 429 | if not tools: |
| 430 | pytest.skip("No MCP tools loaded") |
| 431 | return |
| 432 | |
| 433 | # Find search tool |
| 434 | search_tool = None |
| 435 | for tool in tools: |
| 436 | if "search" in tool.name.lower(): |
| 437 | search_tool = tool |
| 438 | break |
| 439 | |
| 440 | assert search_tool is not None, "Should contain search-related tools" |
| 441 | print(f"✅ Found search tool: {search_tool.name}") |
| 442 | |
| 443 | finally: |
| 444 | await cleanup_mcp_connections() |
| 445 | |
| 446 | |
| 447 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected