Commit 2cc87aee authored by Ryan Herbert's avatar Ryan Herbert

testRunner.py clone fields on db copy

what seems to be some recent changes to pyDAL are causing our method for
copying fields to fail since we are trying to assign a field to a new
table while it is already assigned to it's parent. Cloning the field
allows us to have a new field assigned to the new table.
parent 70419ff1
Pipeline #18354 passed with stages
in 28 seconds
......@@ -59,7 +59,7 @@ test_db = DAL('sqlite://testing1234.sqlite')
init_db_helper()
for tablename in db.tables: # Copy tables!
table_copy = [copy(f) for f in db[tablename]]
table_copy = [f.clone() for f in db[tablename]]
test_db.define_table(tablename, *table_copy)
db = test_db
......
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