From 4ed9b605fc46068b5764c20451194bf862ad8933 Mon Sep 17 00:00:00 2001 From: Ida Date: Tue, 26 May 2026 12:02:04 +0200 Subject: [PATCH] fix: workflow and graphical editor tests failed --- .../workflows/methods/methodContext/methodContext.py | 10 ++++++++++ tests/unit/workflow/test_phase3_context_node.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/workflows/methods/methodContext/methodContext.py b/modules/workflows/methods/methodContext/methodContext.py index 43a97f66..431b588c 100644 --- a/modules/workflows/methods/methodContext/methodContext.py +++ b/modules/workflows/methods/methodContext/methodContext.py @@ -64,6 +64,16 @@ class MethodContext(MethodBase): dynamicMode=True, outputType="UdmDocument", parameters={ + "context": WorkflowActionParameter( + name="context", + type="Any", + frontendType=FrontendType.CONTEXT_BUILDER, + required=False, + description=( + "Optional context payload that may contain file/document references. " + "Preferred input for extractContent; documentList remains supported for compatibility." + ), + ), "documentList": WorkflowActionParameter( name="documentList", type="DocumentList", diff --git a/tests/unit/workflow/test_phase3_context_node.py b/tests/unit/workflow/test_phase3_context_node.py index 76fbc972..3d9d4823 100644 --- a/tests/unit/workflow/test_phase3_context_node.py +++ b/tests/unit/workflow/test_phase3_context_node.py @@ -27,7 +27,7 @@ def test_context_extractContent_node_shape(): assert "LoopItem" in node["inputPorts"][0]["accepts"] names = [p["name"] for p in node["parameters"]] assert names == [ - "documentList", + "context", "contentFilter", "outputMode", "splitBy",