always run test_auth_api with 'admin' user

avoids inconsistent subsequent state based on db behavior
This commit is contained in:
Min RK
2018-03-22 15:39:31 +01:00
parent d0360d5c98
commit 1abd3217aa

View File

@@ -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: