@@ -51,7 +51,7 @@ def test_init(self, app, routes, exception):
51
51
app = Router (routes = routes )
52
52
53
53
assert mount .app == app
54
- assert mount .path == "/foo"
54
+ assert mount .path == "/foo/ "
55
55
56
56
@pytest .mark .parametrize (
57
57
["scope_type" , "handle_call" ],
@@ -149,19 +149,19 @@ def bar(): ...
149
149
assert route_scope == {
150
150
"app" : app if used else asgi_scope ["app" ],
151
151
"path" : "/bar" ,
152
- "root_path" : "" if used else "/foo/1" ,
152
+ "root_path" : "" if used else "/foo/1/ " ,
153
153
}
154
154
155
155
@pytest .mark .parametrize (
156
156
["name" , "params" , "expected_url" , "exception" ],
157
157
(
158
158
pytest .param (
159
- "foo" , {"x" : 1 , "path" : "/foo" }, url .URL (scheme = "http" , path = "/foo/1" ), None , id = "match_full_name"
159
+ "foo" , {"x" : 1 , "path" : "/foo" }, url .URL (scheme = "http" , path = "/foo/1/ " ), None , id = "match_full_name"
160
160
),
161
161
pytest .param ("foo:bar" , {"x" : 1 }, url .URL (scheme = "http" , path = "/foo/1/bar" ), None , id = "match_route" ),
162
162
pytest .param (
163
163
"foo:nested" ,
164
- {"x" : 1 , "path" : "/foo" },
164
+ {"x" : 1 , "path" : "/foo/ " },
165
165
url .URL (scheme = "http" , path = "/foo/1/nested" ),
166
166
None ,
167
167
id = "match_nested_app" ,
0 commit comments