mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 13:33:00 +00:00
always run test_auth_api with 'admin' user
avoids inconsistent subsequent state based on db behavior
This commit is contained in:
@@ -115,7 +115,7 @@ def test_auth_api(app):
|
||||
assert r.status_code == 404
|
||||
|
||||
# make a new cookie token
|
||||
user = db.query(orm.User).first()
|
||||
user = find_user(db, 'admin')
|
||||
api_token = user.new_api_token()
|
||||
|
||||
# check success:
|
||||
|
Reference in New Issue
Block a user