Commit e263182b authored by Mikaël Salson's avatar Mikaël Salson

testRunner.py: init_db_helper is now in vidjil_utils

Since 66a1edd4
parent b79d06ff
......@@ -48,6 +48,7 @@ import os
import traceback
import shutil
from copy import copy
import vidjil_utils
execfile("applications/vidjil/controllers/default.py", globals())
......@@ -55,9 +56,6 @@ execfile("applications/vidjil/controllers/default.py", globals())
# create a test database by copying the original db
test_db = DAL('sqlite://testing1234.sqlite')
# build default database if doesn't exist
init_db_helper()
for tablename in db.tables: # Copy tables!
table_copy = [f.clone() for f in db[tablename]]
test_db.define_table(tablename, *table_copy)
......@@ -65,8 +63,8 @@ for tablename in db.tables: # Copy tables!
db = test_db
auth.db = test_db
init_db_helper(True)
# build default database if doesn't exist
vidjil_utils.init_db_helper(db, auth, True)
fake_sample_set_id = db.sample_set.insert(sample_type = 'patient')
......
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