mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 22:13:00 +00:00
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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user