mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-03 13:19:23 +08:00
get_outputs_summary shared a single fallback slot between text and non-output media, so a text node iterated before an image (e.g. a temp preview) claimed the preview and masked the image, surfacing a text cover for mixed image+text jobs. Give text its own lowest-priority slot so a media thumbnail always wins; text is used only when the job produced no image/video/audio/3d output. Adds coverage for the previously-untested text preview path. |
||
|---|---|---|
| .. | ||
| compare | ||
| execution | ||
| inference | ||
| __init__.py | ||
| conftest.py | ||
| README.md | ||
| test_asset_seeder.py | ||
Automated Testing
Running tests locally
Additional requirements for running tests:
pip install pytest
pip install websocket-client==1.6.1
opencv-python==4.6.0.66
scikit-image==0.21.0
Run inference tests:
pytest tests/inference
Quality regression test
Compares images in 2 directories to ensure they are the same
- Run an inference test to save a directory of "ground truth" images
pytest tests/inference --output_dir tests/inference/baseline
-
Make code edits
-
Run inference and quality comparison tests
pytest