Mock comfy_types in the hope to make the tests work again

This commit is contained in:
StableLlama
2025-05-18 15:14:58 +02:00
parent 302a8f8e06
commit 0da64b3c03
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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 = "."
+4
View File
@@ -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(