Commit dfc92d30 authored by Ryan Herbert's avatar Ryan Herbert

tests/controllers/sample_set.py add sample_set_id to data

parent effa69d3
Pipeline #19859 passed with stages
in 6 minutes and 7 seconds
......@@ -84,7 +84,8 @@ class Sample_setController(unittest.TestCase):
"last_name" : "bob",
"birth" : "2011-11-11",
"info" : "test patient kZtYnOipmAzZ",
"id_label" : "bob"
"id_label" : "bob",
"sample_set_id": ""
}
data = {'patient':[patient], 'group': fake_group_id}
......@@ -103,13 +104,15 @@ class Sample_setController(unittest.TestCase):
def testEditForm(self):
import json
pat = db.patient[fake_patient_id]
patient = {
"id" : fake_patient_id,
"id" : pat.id,
"first_name" : "bab",
"last_name" : "bab",
"birth" : "2010-10-10",
"info" : "bab",
"id_label" : "bab"
"sample_set_id": pat.sample_set_id
}
data = {'patient': [patient]}
request.vars['data'] = json.dumps(data)
......
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