File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def fastapi_mcp(simple_fastapi_app: FastAPI) -> FastApiMCP:
2121 mcp .mount ()
2222 return mcp
2323
24+
2425@pytest .fixture
2526def fastapi_mcp_with_custom_header (simple_fastapi_app : FastAPI ) -> FastApiMCP :
2627 mcp = FastApiMCP (
@@ -32,6 +33,7 @@ def fastapi_mcp_with_custom_header(simple_fastapi_app: FastAPI) -> FastApiMCP:
3233 mcp .mount ()
3334 return mcp
3435
36+
3537@pytest .fixture
3638def lowlevel_server_simple_app (fastapi_mcp : FastApiMCP ) -> Server :
3739 return fastapi_mcp .server
@@ -326,9 +328,7 @@ async def test_headers_passthrough_to_tool_handler(fastapi_mcp: FastApiMCP):
326328
327329
328330@pytest .mark .asyncio
329- async def test_custom_header_passthrough_to_tool_handler (
330- fastapi_mcp_with_custom_header : FastApiMCP
331- ):
331+ async def test_custom_header_passthrough_to_tool_handler (fastapi_mcp_with_custom_header : FastApiMCP ):
332332 from unittest .mock import patch , MagicMock
333333 from fastapi_mcp .types import HTTPRequestInfo
334334
You can’t perform that action at this time.
0 commit comments