From 0da64b3c039fe961c01d2c8cd02628c5b7897c5b Mon Sep 17 00:00:00 2001 From: StableLlama Date: Sun, 18 May 2025 15:14:58 +0200 Subject: [PATCH] Mock comfy_types in the hope to make the tests work again --- pyproject.toml | 2 +- tests/conftest.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0e6b8ed..aae12b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,7 +53,7 @@ testpaths = [ "tests", ] #python_files = ["test_*.py"] -python_files = ["test_boolean_nodes.py"] +python_files = ["conftest.py", "test_boolean_nodes.py"] [tool.mypy] files = "." diff --git a/tests/conftest.py b/tests/conftest.py index ea74195..aa09b9b 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,6 +6,10 @@ from unittest.mock import MagicMock # This allows the tests to import the project sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) +print("=======================================================================") +print("Mocking 'comfy.comfy_types.node_typing' via conftest.py") +print("=======================================================================") + # Create a dummy 'comfy.comfy_types.node_typing' module mock_comfy = MagicMock() mock_comfy.IO = MagicMock(