mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-09 05:40:49 +08:00
When custom nodes fail to import, the summary now shows the exception type and message instead of just "(IMPORT FAILED)". Before: 0.0 seconds (IMPORT FAILED): custom_nodes/my_node After: 0.0 seconds (IMPORT FAILED: ImportError: No module named 'xyz'): custom_nodes/my_node Changes: - Add IMPORT_FAILED_REASONS dict to store failure context - Capture exception type and first line of message (max 100 chars) - Include failure reason in import summary output This helps users quickly diagnose why custom nodes failed to load without needing to scroll through the full traceback. Fixes #11454 |
||
|---|---|---|
| .. | ||
| app_test | ||
| comfy_api_nodes_test | ||
| comfy_api_test | ||
| comfy_extras_test | ||
| comfy_quant | ||
| comfy_test | ||
| execution_test | ||
| folder_paths_test | ||
| nodes_test | ||
| prompt_server_test | ||
| server/utils | ||
| server_test | ||
| utils | ||
| feature_flags_test.py | ||
| README.md | ||
| requirements.txt | ||
| websocket_feature_flags_test.py | ||
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/