mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-05-15 16:58:01 +02:00
be009a4094
Rename the entire project from FuzzForge to SecPipe: - Python packages: fuzzforge_cli → secpipe_cli, fuzzforge_common → secpipe_common, fuzzforge_mcp → secpipe_mcp, fuzzforge_tests → secpipe_tests - Directories: fuzzforge-cli → secpipe-cli, fuzzforge-common → secpipe-common, fuzzforge-mcp → secpipe-mcp, fuzzforge-tests → secpipe-tests - Environment variables: FUZZFORGE_* → SECPIPE_* - MCP server name: SecPipe MCP Server - CI workflows, Makefile, Dockerfile, hub-config, NOTICE updated - Fix mcp-server.yml to use uvicorn secpipe_mcp.application:app
35 lines
912 B
Python
35 lines
912 B
Python
"""TODO."""
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
import pytest
|
|
from fastmcp import Client
|
|
|
|
from secpipe_mcp.application import mcp
|
|
|
|
if TYPE_CHECKING:
|
|
from collections.abc import AsyncGenerator, Callable
|
|
|
|
from fastmcp.client import FastMCPTransport
|
|
from secpipe_tests.fixtures import SecPipeProjectIdentifier
|
|
|
|
pytest_plugins = ["secpipe_tests.fixtures"]
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def environment(
|
|
monkeypatch: pytest.MonkeyPatch,
|
|
random_project_identifier: Callable[[], SecPipeProjectIdentifier],
|
|
) -> None:
|
|
"""TODO."""
|
|
monkeypatch.setenv("SECPIPE_PROJECT_IDENTIFIER", str(random_project_identifier()))
|
|
monkeypatch.setenv("SECPIPE_API_HOST", "127.0.0.1")
|
|
monkeypatch.setenv("SECPIPE_API_PORT", "8000")
|
|
|
|
|
|
@pytest.fixture
|
|
async def mcp_client() -> AsyncGenerator[Client[FastMCPTransport]]:
|
|
"""TODO."""
|
|
async with Client(transport=mcp) as client:
|
|
yield client
|