This commit is contained in:
Dan 2023-02-08 17:10:57 -05:00
parent 23403acd29
commit 9eb2eb28df
3 changed files with 5 additions and 4 deletions

View File

@ -91,7 +91,10 @@ def setup_config(app: Flask) -> None:
# This allows config/testing.py or instance/config.py to override the default config
if "ENV_IDENTIFIER" in app.config and app.config["ENV_IDENTIFIER"] == "testing":
app.config.from_pyfile("config/testing.py", silent=True)
elif "ENV_IDENTIFIER" in app.config and app.config["ENV_IDENTIFIER"] == "unit_testing":
elif (
"ENV_IDENTIFIER" in app.config
and app.config["ENV_IDENTIFIER"] == "unit_testing"
):
app.config.from_pyfile("config/unit_testing.py", silent=True)
else:
app.config.from_pyfile(f"{app.instance_path}/config.py", silent=True)

View File

@ -80,7 +80,6 @@ from spiffworkflow_backend.models.script_attributes_context import (
from spiffworkflow_backend.models.spec_reference import SpecReferenceCache
from spiffworkflow_backend.models.spiff_step_details import SpiffStepDetailsModel
from spiffworkflow_backend.models.user import UserModel
from spiffworkflow_backend.models.user import UserModelSchema
from spiffworkflow_backend.scripts.script import Script
from spiffworkflow_backend.services.custom_parser import MyCustomParser
from spiffworkflow_backend.services.file_system_service import FileSystemService
@ -562,7 +561,6 @@ class ProcessInstanceProcessor:
return current_user
@staticmethod
def get_bpmn_process_instance_from_workflow_spec(
spec: BpmnProcessSpec,

View File

@ -2231,7 +2231,7 @@ class TestProcessApi(BaseTest):
"script_task_two", processor.bpmn_process_instance
)
assert spiff_task is not None
assert spiff_task.data == {'my_var': 'THE VAR'}
assert spiff_task.data == {"my_var": "THE VAR"}
def test_process_model_file_create(
self,