Commit addb8ffa authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

add creator id to test data set

parent 05bd0fc5
...@@ -44,8 +44,8 @@ class DBInitialiser(object): ...@@ -44,8 +44,8 @@ class DBInitialiser(object):
def get_set_dict(self, set_type, sample_set_id, i): def get_set_dict(self, set_type, sample_set_id, i):
if set_type == defs.SET_TYPE_PATIENT: if set_type == defs.SET_TYPE_PATIENT:
return dict(id_label="", first_name="patient", last_name=i, birth="2010-10-10", info="test patient %d #test%d" % (i, i), sample_set_id=sample_set_id) return dict(id_label="", first_name="patient", last_name=i, birth="2010-10-10", info="test patient %d #test%d" % (i, i), sample_set_id=sample_set_id, creator=1)
d = dict(name="%s %d" % (set_type, i), info="test %s %d #test%d" % (set_type, i, i), sample_set_id=sample_set_id) d = dict(name="%s %d" % (set_type, i), info="test %s %d #test%d" % (set_type, i, i), sample_set_id=sample_set_id, creator=1)
if set_type == defs.SET_TYPE_RUN: if set_type == defs.SET_TYPE_RUN:
d['id_label'] = "" d['id_label'] = ""
return d return d
......
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