File tree 2 files changed +3
-6
lines changed
tests/server/fastmcp/servers
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:
466
466
async def run_sse_async (self ) -> None :
467
467
"""Run the server using SSE transport."""
468
468
import uvicorn
469
+
469
470
starlette_app = self .sse_app ()
470
471
471
472
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):
114
114
115
115
@pytest .mark .anyio
116
116
async 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" )})
120
118
assert not (test_dir / "example.py" ).exists ()
121
119
122
120
123
121
@pytest .mark .anyio
124
122
async 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" )})
128
124
res_iter = await mcp .read_resource ("file://test_dir/example.py" )
129
125
res_list = list (res_iter )
130
126
assert len (res_list ) == 1
You can’t perform that action at this time.
0 commit comments