test changes
This commit is contained in:
+4
-6
@@ -1,11 +1,9 @@
|
||||
import pytest
|
||||
from fastmcp import Client
|
||||
from fastmcp.client.transports import StreamableHttpTransport
|
||||
from test_stdio import assert_server_contract
|
||||
from fastmcp.utilities.tests import ASGIServer
|
||||
from server_contract import assert_server_contract
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
async def test_fastapi_server_enumerates_and_reads_content(fastapi_server_url: str) -> None:
|
||||
transport = StreamableHttpTransport(fastapi_server_url)
|
||||
async with Client(transport) as client:
|
||||
async def test_fastapi_server(http_server: ASGIServer) -> None:
|
||||
async with http_server.client() as client:
|
||||
await assert_server_contract(client)
|
||||
|
||||
Reference in New Issue
Block a user