File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
tests/server/fastmcp/servers Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -466,6 +466,7 @@ async def run_stdio_async(self) -> None:
466466 async def run_sse_async (self ) -> None :
467467 """Run the server using SSE transport."""
468468 import uvicorn
469+
469470 starlette_app = self .sse_app ()
470471
471472 config = uvicorn .Config (
Original file line number Diff line number Diff line change @@ -114,17 +114,13 @@ async def test_read_resource_file(mcp: FastMCP):
114114
115115@pytest .mark .anyio
116116async def test_delete_file (mcp : FastMCP , test_dir : Path ):
117- await mcp .call_tool (
118- "delete_file" , arguments = {"path" : str (test_dir / "example.py" )}
119- )
117+ await mcp .call_tool ("delete_file" , arguments = {"path" : str (test_dir / "example.py" )})
120118 assert not (test_dir / "example.py" ).exists ()
121119
122120
123121@pytest .mark .anyio
124122async def test_delete_file_and_check_resources (mcp : FastMCP , test_dir : Path ):
125- await mcp .call_tool (
126- "delete_file" , arguments = {"path" : str (test_dir / "example.py" )}
127- )
123+ await mcp .call_tool ("delete_file" , arguments = {"path" : str (test_dir / "example.py" )})
128124 res_iter = await mcp .read_resource ("file://test_dir/example.py" )
129125 res_list = list (res_iter )
130126 assert len (res_list ) == 1
You can’t perform that action at this time.
0 commit comments