Commit d376ae19 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

tests/controllers/file.py, testRunner.py fake_pre_process_id

Added a fake_pre_process_id to be passed to testEditForm in tests/controllers/file.py
parent 8f2489df
......@@ -92,6 +92,7 @@ class FileController(unittest.TestCase):
request.vars['producer']="plop"
request.vars['patient_id']="plapipou("+str(fake_patient_id)+")"
request.vars['run_id']=""
request.vars['pre_process'] = fake_pre_process_id
resp = edit_form()
......
......@@ -90,6 +90,11 @@ fake_config_id = db.config.insert(name="config_test_popipo",
fuse_command="-plop",
program="plop.cpp"
)
fake_pre_process_id = db.pre_process.insert(name="foobar",
command="cat &file1& &file2& > &result&",
info="barfoo"
)
db.auth_permission.insert(group_id = group_id,
name = "admin",
......
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