@@ -93,18 +93,18 @@ async def test_url_router():
93
93
# Valid keyword argument matches
94
94
assert await router ({"type" : "http" , "path" : "/kwarg/hello/" }, None , None ) == 5
95
95
assert kwarg_app .call_args [0 ][0 ]["url_route" ] == {
96
- "args" : tuple (),
96
+ "args" : (),
97
97
"kwargs" : {"name" : "hello" },
98
98
}
99
99
assert await router ({"type" : "http" , "path" : "/kwarg/hellothere/" }, None , None ) == 5
100
100
assert kwarg_app .call_args [0 ][0 ]["url_route" ] == {
101
- "args" : tuple (),
101
+ "args" : (),
102
102
"kwargs" : {"name" : "hellothere" },
103
103
}
104
104
# Valid default keyword arguments
105
105
assert await router ({"type" : "http" , "path" : "/defaultkwargs/" }, None , None ) == 6
106
106
assert defaultkwarg_app .call_args [0 ][0 ]["url_route" ] == {
107
- "args" : tuple (),
107
+ "args" : (),
108
108
"kwargs" : {"default" : 42 },
109
109
}
110
110
# Valid root_path in scope
@@ -246,13 +246,13 @@ async def test_url_router_path():
246
246
await router ({"type" : "http" , "path" : "/author/andrewgodwin/" }, None , None ) == 3
247
247
)
248
248
assert kwarg_app .call_args [0 ][0 ]["url_route" ] == {
249
- "args" : tuple (),
249
+ "args" : (),
250
250
"kwargs" : {"name" : "andrewgodwin" },
251
251
}
252
252
# Named with typecasting
253
253
assert await router ({"type" : "http" , "path" : "/year/2012/" }, None , None ) == 3
254
254
assert kwarg_app .call_args [0 ][0 ]["url_route" ] == {
255
- "args" : tuple (),
255
+ "args" : (),
256
256
"kwargs" : {"year" : 2012 },
257
257
}
258
258
# Invalid matches
0 commit comments