Skip to content

Commit 2748a75

Browse files
author
chiliu
committed
fix tests
1 parent 6cf74f1 commit 2748a75

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,6 @@ async def handle_streamable_http(request: Request) -> Response:
854854
routes=routes,
855855
middleware=middleware,
856856
lifespan=lambda app: self.session_manager.run(),
857-
redirect_slashes=False,
858857
)
859858

860859
async def list_prompts(self) -> list[MCPPrompt]:

tests/server/fastmcp/test_server.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,13 @@ async def test_starlette_routes_with_mount_path(self):
129129

130130
# Find routes by type
131131
streamable_routes = [r for r in app.routes if isinstance(r, Route)]
132-
mount_routes = [r for r in app.routes if isinstance(r, Mount)]
133132

134133
# Verify routes exist
135134
assert len(streamable_routes) == 2, "Should have two streamable routes"
136135

137136
# Verify path values
138137
assert streamable_routes[0].path == "/mcp", "Streamable route path should be /mcp"
139-
assert streamable_routes[1].path == "/mcp/", "Streamable route path should be /mcp"
140-
141-
138+
assert streamable_routes[1].path == "/mcp/", "Streamable route path should be /mcp/"
142139

143140
@pytest.mark.anyio
144141
async def test_non_ascii_description(self):

0 commit comments

Comments
 (0)