Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

test(graph): cover non-If recursive source graph forwarding

JPPhotoeba14f56dbdb
diff --git a/tests/app/services/shared/test_graph_if_runtime.py b/tests/app/services/shared/test_graph_if_runtime.py
index 29710c2246..ad596f2812 100644
--- a/tests/app/services/shared/test_graph_if_runtime.py
+++ b/tests/app/services/shared/test_graph_if_runtime.py
@@ -116,6 +116,7 @@ def test_nested_if_iteration_paths_use_supplied_source_graph_recursively() -> No
"inner": IfInvocation(id="inner", condition=True),
"guarded": IfInvocation(id="guarded"),
"condition": BooleanLogicInvocation(id="condition", a=True, b=True),
+ "bridge": AddInvocation(id="bridge"),
}
)
)
@@ -135,6 +136,10 @@ def test_nested_if_iteration_paths_use_supplied_source_graph_recursively() -> No
),
Edge(
source=EdgeConnection(node_id="inner", field="value"),
+ destination=EdgeConnection(node_id="bridge", field="a"),
+ ),
+ Edge(
+ source=EdgeConnection(node_id="bridge", field="value"),
destination=EdgeConnection(node_id="if", field="true_input"),
),
Edge(