File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ async def test_sse_app_with_mount_path(self):
7474 mcp .sse_app ()
7575 # Verify _normalize_path was called with correct args
7676 mock_normalize .assert_called_once_with ("/custom" , "/messages/" )
77-
77+
7878 # Test with mount_path parameter
7979 mcp = FastMCP ()
8080 with patch .object (
@@ -105,19 +105,19 @@ async def test_starlette_routes_with_mount_path(self):
105105 assert (
106106 mount_routes [0 ].path == "/messages"
107107 ), "Mount route path should be /messages"
108-
108+
109109 # Test with mount path as parameter
110110 mcp = FastMCP ()
111111 app = mcp .sse_app (mount_path = "/param" )
112-
112+
113113 # Find routes by type
114114 sse_routes = [r for r in app .routes if isinstance (r , Route )]
115115 mount_routes = [r for r in app .routes if isinstance (r , Mount )]
116-
116+
117117 # Verify routes exist
118118 assert len (sse_routes ) == 1 , "Should have one SSE route"
119119 assert len (mount_routes ) == 1 , "Should have one mount route"
120-
120+
121121 # Verify path values
122122 assert sse_routes [0 ].path == "/sse" , "SSE route path should be /sse"
123123 assert (
You can’t perform that action at this time.
0 commit comments