we need a commit at the end, but I don't really believe that.
This commit is contained in:
parent
53a8811769
commit
0dc422c7f6
|
@ -59,6 +59,7 @@ def add_workflow_to_study(study_id, body):
|
|||
study_id=study_id,
|
||||
workflow_spec_id=workflow_spec_model.id)
|
||||
db.session.add(workflow)
|
||||
db.session.commit()
|
||||
|
||||
def get_workflow(workflow_id):
|
||||
return db.session.query(WorkflowModel).filter_by(id=workflow_id).first()
|
||||
|
|
|
@ -61,3 +61,4 @@ class TestStudy(BaseTest, unittest.TestCase):
|
|||
self.assertEqual(WorkflowStatus.user_input_required, workflow.status)
|
||||
self.assertIsNotNone(workflow.bpmn_workflow_json)
|
||||
self.assertEqual(spec.id, workflow.workflow_spec_id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue