ComfyUI/tests-unit/assets_test
Simon Pinfold 5e267faf02 fix(assets): reject unregistered model_type: on model-asset edit
Make the edit path symmetric with upload: model_type: is an operational
placement tag on a model asset, so an unregistered folder_name is an invalid
placement target and is rejected (400 UNKNOWN_MODEL_TYPE), not stored as a
label. A real edit-type action always targets a registered folder from
discovery, so only junk manual adds are affected.

Narrowly update the system-looking-labels test to drop the now-operational
bare model_type: case (other reserved-ish prefixes still store as labels) and
add a focused unknown-model_type:-on-model-asset rejection test.
2026-06-20 14:40:09 +12:00
..
queries Update asset tests for namespaced tags 2026-06-20 13:28:23 +12:00
services fix(assets): reject unregistered model_type: on model-asset edit 2026-06-20 14:40:09 +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): reject unregistered model_type: on model-asset edit 2026-06-20 14:40:09 +12:00
test_uploads.py Add asset response file paths 2026-06-20 13:32:22 +12:00