Mock comfy_types in the hope to make the tests work again
This commit is contained in:
+1
-1
@@ -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 = "."
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user