Commit 9ca47246 authored by Marc Duez's avatar Marc Duez
Browse files

server test : build test db in test folder

parent 1a0691e9
......@@ -45,7 +45,7 @@ from copy import copy
# create a test database by copying the original db
shutil.copy2('applications/vidjil/databases/storage.sqlite', 'applications/vidjil/databases/testing.sqlite')
shutil.copy2('applications/vidjil/databases/storage.sqlite', 'applications/vidjil/tests/databases/testing.sqlite')
test_db = DAL('sqlite://testing.sqlite')
for tablename in db.tables: # Copy tables!
table_copy = [copy(f) for f in db[tablename]]
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