diff --git a/tests/study/test_study_details.py b/tests/study/test_study_details.py index 7d142515..0b7538c9 100644 --- a/tests/study/test_study_details.py +++ b/tests/study/test_study_details.py @@ -5,7 +5,7 @@ from SpiffWorkflow.bpmn.PythonScriptEngine import Box from tests.base_test import BaseTest from unittest.mock import patch -from crc import db, session +from crc import app, session from crc.api.common import ApiError from crc.models.file import FileDataModel, FileModel from crc.models.protocol_builder import ProtocolBuilderRequiredDocumentSchema, ProtocolBuilderStudySchema @@ -30,6 +30,7 @@ class TestStudyDetailsScript(BaseTest): self.task = self.processor.next_task() def test_study_info_returns_a_box_object_for_all_validations(self): + app.config['PB_ENABLED'] = True for option in StudyInfo.type_options: data = StudyInfo().do_task_validate_only(self.task, self.study.id, self.workflow_model.id, option) if isinstance(data, list): diff --git a/tests/test_verify_end_event.py b/tests/test_verify_end_event.py index 18069f99..0d431b58 100644 --- a/tests/test_verify_end_event.py +++ b/tests/test_verify_end_event.py @@ -1,12 +1,13 @@ from tests.base_test import BaseTest +from crc import app from crc.services.workflow_service import WorkflowService from crc.api.common import ApiError -from jinja2.exceptions import TemplateSyntaxError class TestValidateEndEvent(BaseTest): def test_validate_end_event(self): + app.config['PB_ENABLED'] = True error_string = """Error processing template for task EndEvent_1qvyxg7: expected token 'end of statement block', got '='""" diff --git a/tests/workflow/test_workflow_infinite_loop.py b/tests/workflow/test_workflow_infinite_loop.py index a9846084..cd9fdd4a 100644 --- a/tests/workflow/test_workflow_infinite_loop.py +++ b/tests/workflow/test_workflow_infinite_loop.py @@ -6,6 +6,7 @@ import json class TestWorkflowInfiniteLoop(BaseTest): def test_workflow_infinite_loop(self): + app.config['PB_ENABLED'] = True self.load_example_data() spec_model = self.load_test_spec('infinite_loop') rv = self.app.get('/v1.0/workflow-specification/%s/validate' % spec_model.id, headers=self.logged_in_headers())