Test the simple echo server
()
| 17 | |
| 18 | @pytest.mark.anyio |
| 19 | async def test_simple_echo(): |
| 20 | """Test the simple echo server""" |
| 21 | from examples.mcpserver.simple_echo import mcp |
| 22 | |
| 23 | async with Client(mcp) as client: |
| 24 | result = await client.call_tool("echo", {"text": "hello"}) |
| 25 | assert result == snapshot( |
| 26 | CallToolResult(content=[TextContent(text="hello")], structured_content={"result": "hello"}) |
| 27 | ) |
| 28 | |
| 29 | |
| 30 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected