mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-14 21:43:01 +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
|
assert r.status_code == 404
|
||||||
|
|
||||||
# make a new cookie token
|
# make a new cookie token
|
||||||
user = db.query(orm.User).first()
|
user = find_user(db, 'admin')
|
||||||
api_token = user.new_api_token()
|
api_token = user.new_api_token()
|
||||||
|
|
||||||
# check success:
|
# check success:
|
||||||
|
Reference in New Issue
Block a user