mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 05:53:00 +00:00
set API token in single-user-spawner test
This commit is contained in:
@@ -64,6 +64,7 @@ def test_spawner(db, io_loop):
|
||||
|
||||
def test_single_user_spawner(db, io_loop):
|
||||
spawner = new_spawner(db, cmd=['jupyterhub-singleuser'])
|
||||
spawner.api_token = 'secret'
|
||||
io_loop.run_sync(spawner.start)
|
||||
assert spawner.user.server.ip == '127.0.0.1'
|
||||
# wait for http server to come up,
|
||||
|
Reference in New Issue
Block a user