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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
test(execution): cover both If admission adapters
JPPhoto2b6ad47482ad
diff --git a/tests/app/services/shared/test_execution_engine_differential.py b/tests/app/services/shared/test_execution_engine_differential.pyindex c7c50b3c0c..5eb5b5a6e4 100644--- a/tests/app/services/shared/test_execution_engine_differential.py+++ b/tests/app/services/shared/test_execution_engine_differential.py@@ -1538,7 +1538,9 @@ def test_generic_legacy_shaped_if_does_not_prune_or_skip_during_resolution(assert deleted_edges == [][email protected]("force_compatibility_scheduler", [False, True])def test_if_readiness_does_not_delegate_to_legacy_activation_compiler(+ force_compatibility_scheduler: bool,monkeypatch: pytest.MonkeyPatch,) -> None:graph = _nested_if_graph()@@ -1546,9 +1548,17 @@ def test_if_readiness_does_not_delegate_to_legacy_activation_compiler(def fail_compiler(*_: object, **__: object) -> tuple[object, ...]:raise AssertionError("If readiness used compiler-derived branch topology")+ def fail_topology(*_: object, **__: object) -> dict[str, set[str]]:+ raise AssertionError("If readiness used the legacy topology entry point")+monkeypatch.setattr(_IfActivationCompiler, "get_activation_dependencies", fail_compiler)+ monkeypatch.setattr(_IfActivationCompiler, "get_branch_exclusive_sources", fail_topology)+ monkeypatch.setattr(graph_module, "_get_if_branch_exclusive_sources", fail_topology)- trace, state = _run_graph(GraphExecutionState(graph=graph))+ trace, state = _run_graph(+ GraphExecutionState(graph=graph),+ force_compatibility_scheduler=force_compatibility_scheduler,+ )assert trace == ["outer_condition", "inner_condition", "inner_false", "inner_if", "outer_if", "sink"]assert state.is_complete()