Commit 9021013f authored by Mikaël Salson's avatar Mikaël Salson

testRunner.py: Define variables so that they can be accessed when used

parent 517de391
......@@ -63,6 +63,8 @@ for tablename in db.tables: # Copy tables!
db = test_db
auth.db = test_db
current.db = db
current.auth = auth
# build default database if doesn't exist
vidjil_utils.init_db_helper(db, auth, True)
......@@ -90,6 +92,8 @@ user_id = db.auth_user.insert(
unique_group = db.auth_group.insert(role="user_"+str(user_id), description=" ")
db.auth_membership.insert(user_id=user_id, group_id=unique_group)
auth.user = db.auth_user[user_id]
# with admin privilege
group_id = 1 #admin group
db.auth_membership.insert(user_id=user_id, group_id=group_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment