test: distinguish real-Core integration from standalone CI

This commit is contained in:
ukr8b3g-cmyk
2026-10-04 19:28:11 +09:00
parent 190141e03e
commit b2967d867c
6 changed files with 24 additions and 8 deletions
+12
View File
@@ -1,5 +1,6 @@
from __future__ import annotations
import importlib
import importlib.util
import sys
from pathlib import Path
@@ -27,6 +28,17 @@ import subprocess
import pytest
@pytest.fixture
def require_comfy_core():
"""Only skip integration cases when the standalone checkout lacks Core."""
try:
importlib.import_module("comfy")
except ModuleNotFoundError as error:
if error.name != "comfy":
raise
pytest.skip("Requires an installed ComfyUI Core; standalone CI has no Core")
@pytest.fixture(scope="session")
def review_queue_results():
node = shutil.which("node")