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:
yuvipanda
2017-06-29 11:21:55 -07:00
parent e691231f64
commit ebb7b4b4ae
2 changed files with 4 additions and 4 deletions

View File

@@ -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()