Files
ComfyUI/tests-unit
Simon Pinfold 789bcf34f7 Re-enrich a reference whose asset no longer has a hash
count_active_siblings excludes soft-deleted references, so rewriting the last
active reference to a shared asset clears that asset's hash in place while a
soft-deleted sibling still points at it. Restoring the sibling then matched the
unchanged check on its own untouched file and kept enrichment_level at HASHED,
so it was never re-hashed.

Preserving state only makes sense when there is state to preserve: require a
recorded hash before taking the unchanged path.
2026-08-11 16:44:45 -07:00
..

Pytest Unit Tests

Install test dependencies

pip install -r tests-unit/requirements.txt

Run tests

pytest tests-unit/