mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-06 10:17:59 +08:00
- test_output_clamped now uses inputs that would produce -0.5 without clamping, so it actually exercises the torch.clamp(..., 0, 1) call. - test_padding_value_is_one verifies that the channel-alignment logic pads with 1.0 specifically (not 0.0 or some other value), which is the semantic guarantee of treating the extra channel as an opaque alpha.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/