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:
21
21
mcp .mount ()
22
22
return mcp
23
23
24
+
24
25
@pytest .fixture
25
26
def fastapi_mcp_with_custom_header (simple_fastapi_app : FastAPI ) -> FastApiMCP :
26
27
mcp = FastApiMCP (
@@ -32,6 +33,7 @@ def fastapi_mcp_with_custom_header(simple_fastapi_app: FastAPI) -> FastApiMCP:
32
33
mcp .mount ()
33
34
return mcp
34
35
36
+
35
37
@pytest .fixture
36
38
def lowlevel_server_simple_app (fastapi_mcp : FastApiMCP ) -> Server :
37
39
return fastapi_mcp .server
@@ -326,9 +328,7 @@ async def test_headers_passthrough_to_tool_handler(fastapi_mcp: FastApiMCP):
326
328
327
329
328
330
@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 ):
332
332
from unittest .mock import patch , MagicMock
333
333
from fastapi_mcp .types import HTTPRequestInfo
334
334
You can’t perform that action at this time.
0 commit comments