mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-08-15 03:10:19 +02:00
fix: use SNAP detection for podman storage, update tests for OSS
This commit is contained in:
@@ -1,13 +1,61 @@
|
||||
"""MCP resource tests for FuzzForge OSS.
|
||||
"""MCP tool tests for FuzzForge OSS.
|
||||
|
||||
Note: The OSS version uses a different architecture than the enterprise version.
|
||||
These tests are placeholders - the actual MCP tools are tested through integration tests.
|
||||
Tests the MCP tools that are available in the OSS version.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from fastmcp import Client
|
||||
from fastmcp.client import FastMCPTransport
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="OSS uses different architecture - no HTTP API")
|
||||
async def test_placeholder() -> None:
|
||||
"""Placeholder test - OSS MCP doesn't use HTTP resources."""
|
||||
pass
|
||||
async def test_list_modules_tool_exists(
|
||||
mcp_client: "Client[FastMCPTransport]",
|
||||
) -> None:
|
||||
"""Test that the list_modules tool is available."""
|
||||
tools = await mcp_client.list_tools()
|
||||
tool_names = [tool.name for tool in tools]
|
||||
|
||||
assert "list_modules" in tool_names
|
||||
|
||||
|
||||
async def test_init_project_tool_exists(
|
||||
mcp_client: "Client[FastMCPTransport]",
|
||||
) -> None:
|
||||
"""Test that the init_project tool is available."""
|
||||
tools = await mcp_client.list_tools()
|
||||
tool_names = [tool.name for tool in tools]
|
||||
|
||||
assert "init_project" in tool_names
|
||||
|
||||
|
||||
async def test_execute_module_tool_exists(
|
||||
mcp_client: "Client[FastMCPTransport]",
|
||||
) -> None:
|
||||
"""Test that the execute_module tool is available."""
|
||||
tools = await mcp_client.list_tools()
|
||||
tool_names = [tool.name for tool in tools]
|
||||
|
||||
assert "execute_module" in tool_names
|
||||
|
||||
|
||||
async def test_execute_workflow_tool_exists(
|
||||
mcp_client: "Client[FastMCPTransport]",
|
||||
) -> None:
|
||||
"""Test that the execute_workflow tool is available."""
|
||||
tools = await mcp_client.list_tools()
|
||||
tool_names = [tool.name for tool in tools]
|
||||
|
||||
assert "execute_workflow" in tool_names
|
||||
|
||||
|
||||
async def test_mcp_has_expected_tool_count(
|
||||
mcp_client: "Client[FastMCPTransport]",
|
||||
) -> None:
|
||||
"""Test that MCP has the expected number of tools."""
|
||||
tools = await mcp_client.list_tools()
|
||||
|
||||
# Should have at least 4 core tools
|
||||
assert len(tools) >= 4
|
||||
|
||||
Reference in New Issue
Block a user