mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-27 15:51:33 +02:00
Rename McpError to MCPError and convert construction sites
This commit is contained in:
parent
2f49f9f7c0
commit
fdac9f9f2e
39 changed files with 217 additions and 281 deletions
|
|
@ -2,7 +2,7 @@ import json
|
|||
import os
|
||||
|
||||
import pytest
|
||||
from mcp import McpError
|
||||
from mcp import MCPError
|
||||
from mcp_types import Resource, TextContent, Tool
|
||||
|
||||
from fastmcp import Client
|
||||
|
|
@ -96,7 +96,7 @@ class TestGithubMCPRemote:
|
|||
"""Test calling a non-existing tool"""
|
||||
async with streamable_http_client:
|
||||
assert streamable_http_client.is_connected()
|
||||
with pytest.raises(McpError, match=r"unknown tool|tool not found"):
|
||||
with pytest.raises(MCPError, match=r"unknown tool|tool not found"):
|
||||
await streamable_http_client.call_tool("foo")
|
||||
|
||||
async def test_call_tool_list_commits(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue