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.

859 B
Raw Blame
import sys

import pytest

from tests.app.services import workflow_call_test_utils as workflow_call_tests


def test_run_node_propagates_keyboard_interrupt(monkeypatch) -> None:
    workflow_call_tests.test_run_node_propagates_keyboard_interrupt(monkeypatch)


@pytest.mark.skipif(
    sys.platform == "win32",
    reason=(
        "On Windows os.kill(pid, SIGINT) ends the process via TerminateProcess instead of raising KeyboardInterrupt, "
        "so the test passes even when the runner swallows interrupts."
    ),
)
def test_run_node_does_not_swallow_sigint_in_subprocess() -> None:
    workflow_call_tests.test_run_node_does_not_swallow_sigint_in_subprocess()


def test_on_after_run_session_does_not_complete_incomplete_session(monkeypatch) -> None:
    workflow_call_tests.test_on_after_run_session_does_not_complete_incomplete_session(monkeypatch)