mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Make data a non-optional arg to add_route
We expect at least an empty dict when we fetch it, so let's make it non-optional and always pass in something. This is clearer.
This commit is contained in:
@@ -204,7 +204,7 @@ def test_add_get_delete(app, routespec):
|
||||
proxy = app.proxy
|
||||
target = 'https://localhost:1234'
|
||||
with context():
|
||||
yield proxy.add_route(arg, target=target)
|
||||
yield proxy.add_route(arg, target=target, {})
|
||||
routes = yield proxy.get_all_routes()
|
||||
if not expect_value_error:
|
||||
assert routespec in routes.keys()
|
||||
|
Reference in New Issue
Block a user