ComfyUI/tests-unit/assets_test
Simon Pinfold bf898cc552 fix(assets): move model asset on model_type: edit to stay loader-coherent
Under supports_model_type_tags, a model_type: edit on a filesystem-backed
model asset now relocates and re-registers the file to the folder matching
the new model_type:<folder_name>, so the file location stays coherent with
the label instead of a label-only relabel that left the file loader-orphaned.

Triggered off the POST /tags add (apply_tags): on a registered folder change
the file moves (preserving subfolder + filename), path-derived system tags
are re-derived, and filename metadata refreshed, all in one transaction with
file rollback on failure. Collisions are rejected (never clobber); an
unregistered model_type: stays a permissive label; non-model and hash-only
references are untouched. Shared on-disk folders keep their plural twins.
2026-06-20 14:40:08 +12:00
..
queries Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
services fix(assets): move model asset on model_type: edit to stay loader-coherent 2026-06-20 14:40:08 +12:00
conftest.py Add namespaced model type asset tags 2026-06-20 13:28:23 +12:00
helpers.py Emit hash alongside asset_hash on all Asset responses (#13739) 2026-05-25 11:21:35 -07:00
test_assets_missing_sync.py Defer public asset file paths 2026-06-20 13:28:24 +12:00
test_crud.py Defer public asset file paths 2026-06-20 13:28:24 +12:00
test_downloads.py Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
test_file_utils.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
test_list_cursor.py Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
test_list_filter.py Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
test_metadata_filters.py Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
test_prompt_id_enforcement.py revert(assets): drop job_ids filter from GET /api/assets (#14408) 2026-06-10 19:23:01 -07:00
test_prune_orphaned_assets.py Defer public asset file paths 2026-06-20 13:28:24 +12:00
test_sync_references.py chore(assets): drop vestigial tags.tag_type column (#14248) 2026-06-09 21:07:10 -07:00
test_tags_api.py fix(assets): move model asset on model_type: edit to stay loader-coherent 2026-06-20 14:40:08 +12:00
test_uploads.py Add asset response file paths 2026-06-20 13:32:22 +12:00