mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +02:00
Repoint tests and examples off removed deprecations
Replaces FastMCP.as_proxy() helper calls with create_proxy(), rewrites the mount() as_proxy=/prefix= kwarg tests to plain mount() (the params are gone), and deletes deprecation-only tests for as_proxy() and remove_tool().
This commit is contained in:
parent
e5d9d1f17d
commit
6a6fdcb2bb
11 changed files with 39 additions and 176 deletions
|
|
@ -719,8 +719,9 @@ class TestProxy:
|
|||
@pytest.fixture
|
||||
def proxy_server(self, mcp_server: FastMCP) -> FastMCP:
|
||||
from fastmcp.client.transports import FastMCPTransport
|
||||
from fastmcp.server import create_proxy
|
||||
|
||||
proxy = FastMCP.as_proxy(FastMCPTransport(mcp_server))
|
||||
proxy = create_proxy(FastMCPTransport(mcp_server))
|
||||
return proxy
|
||||
|
||||
async def test_transform_proxy(self, proxy_server: FastMCP):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue