- Add Dockerfile using uv for dependency management - Add docker-compose.yaml for container orchestration - Add .dockerignore to optimize builds - Update taskipy start task with http transport and port 3001 - Update README.md and AGENTS.md with Docker documentation
25 lines
489 B
Python
25 lines
489 B
Python
import pytest
|
|
from unittest.mock import MagicMock, patch
|
|
from fastmcp import Client
|
|
|
|
|
|
@pytest.fixture
|
|
def mock_settings():
|
|
with patch("tryton_mcp.server.settings") as mock:
|
|
mock_client = MagicMock()
|
|
mock.get_client.return_value = mock_client
|
|
yield mock
|
|
|
|
|
|
@pytest.fixture
|
|
def mcp_server():
|
|
from tryton_mcp.server import mcp
|
|
|
|
return mcp
|
|
|
|
|
|
@pytest.fixture
|
|
async def mcp_client(mcp_server):
|
|
async with Client(mcp_server) as client:
|
|
yield client
|