Fix GitHub Actions test dependencies
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import types
|
||||
|
||||
import pytest
|
||||
import torch
|
||||
|
||||
@@ -15,6 +18,21 @@ from ComfyUI_H3_Continuum_Join.v3.hires_fix_nodes import (
|
||||
from ComfyUI_H3_Continuum_Join.v3.second_pass import SecondPassContractError
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def _stub_core_h3_canvas_module(monkeypatch):
|
||||
comfy_extras = types.ModuleType("comfy_extras")
|
||||
comfy_extras.__path__ = []
|
||||
nodes_minimax_h3 = types.ModuleType("comfy_extras.nodes_minimax_h3")
|
||||
nodes_minimax_h3.CANVAS_MULTIPLE = 32
|
||||
comfy_extras.nodes_minimax_h3 = nodes_minimax_h3
|
||||
monkeypatch.setitem(sys.modules, "comfy_extras", comfy_extras)
|
||||
monkeypatch.setitem(
|
||||
sys.modules,
|
||||
"comfy_extras.nodes_minimax_h3",
|
||||
nodes_minimax_h3,
|
||||
)
|
||||
|
||||
|
||||
def _video(marker: str, *, height: int = 4, width: int = 4) -> dict:
|
||||
return {
|
||||
"samples": torch.zeros((1, 24, 3, height, width)),
|
||||
|
||||
Reference in New Issue
Block a user