simplify Hub object a bit

- remove use of deprecated Hub.server
- add deprecation warning to Hub.server property
- move cookie_name declaration to Hub

It should now be possible to use Hub.from_url('http://1.2.3.4:1234/hub/') without missing information
This commit is contained in:
Min RK
2017-07-26 11:48:13 +02:00
parent 7ee8e96ece
commit eb1895e980
6 changed files with 14 additions and 11 deletions

View File

@@ -536,7 +536,7 @@ def test_cookie(app):
app_user = get_app_user(app, name)
cookies = app.login_user(name)
cookie_name = app.hub.server.cookie_name
cookie_name = app.hub.cookie_name
# cookie jar gives '"cookie-value"', we want 'cookie-value'
cookie = cookies[cookie_name][1:-1]
r = api_request(app, 'authorizations/cookie',