Adding error management

This commit is contained in:
2025-07-11 18:34:04 +02:00
parent 03ed1af7e6
commit 2b288348e2
6 changed files with 83 additions and 37 deletions

View File

@@ -5,7 +5,8 @@ from fasthtml.xtend import Script
from components.workflows.components.WorkflowDesigner import WorkflowDesigner, COMPONENT_TYPES
from components.workflows.constants import ProcessorTypes
from components.workflows.db_management import WorkflowsDesignerSettings, WorkflowComponent, Connection
from components.workflows.db_management import WorkflowsDesignerSettings, WorkflowComponent, Connection, \
WorkflowComponentRuntimeState
from core.settings_management import SettingsManager, MemoryDbEngine
from helpers import matches, Contains
@@ -83,7 +84,8 @@ def test_i_can_render_no_component(designer):
def test_i_can_render_a_producer(designer, producer_component):
component = producer_component
actual = designer._mk_workflow_component(component)
component_state = WorkflowComponentRuntimeState(component.id)
actual = designer._mk_workflow_component(component, component_state)
expected = Div(
# input connection point
Div(cls="wkf-connection-point wkf-input-point",