mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-24 07:57:29 +08:00
PIL.Image.fromarray accepts 2-channel (LA mode) arrays as well, not just 1/3/4-channel. Reword the inline comments and test docstrings to say 'rejects > 4-channel arrays', which is the actual constraint driving the cap. Also drop a too-narrow 'mode in (L, RGB, RGBA)' assertion in test_save_compatible_output_passes_through_pil so a future 2-channel result would not be flagged as a failure. |
||
|---|---|---|
| .. | ||
| app_test | ||
| assets_test | ||
| comfy_api_test | ||
| comfy_extras_test | ||
| comfy_quant | ||
| comfy_test | ||
| execution_test | ||
| folder_paths_test | ||
| prompt_server_test | ||
| seeder_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/