we need a commit at the end, but I don't really believe that.

This commit is contained in:
Dan Funk 2019-12-18 15:32:06 -05:00
parent 53a8811769
commit 0dc422c7f6
2 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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)