ComfyUI/tests-unit/assets_test
Luke Mino-Altherr 9016593586 Populate mime_type for assets in scanner and API paths
- Add custom MIME type registrations for model files (.safetensors, .pt, .ckpt, .gguf, .yaml)
- Pass mime_type through SeedAssetSpec to bulk_ingest
- Re-register types before use since server.py mimetypes.init() resets them
- Add tests for bulk ingest mime_type handling

Amp-Thread-ID: https://ampcode.com/threads/T-019c3626-c6ad-7139-a570-62da4e656a1a
Co-authored-by: Amp <amp@ampcode.com>
2026-02-24 11:34:44 -08:00
..
queries Rename bulk_set_needs_verify to bulk_update_needs_verify for readability 2026-02-24 11:34:44 -08:00
services Populate mime_type for assets in scanner and API paths 2026-02-24 11:34:44 -08:00
conftest.py chore: remove unused re-exports from conftest.py 2026-02-24 11:34:44 -08:00
helpers.py feat(assets): add background asset seeder for non-blocking startup 2026-02-24 11:34:44 -08:00
test_assets_missing_sync.py fix: resolve test import errors and module collision in assets_test 2026-02-24 11:34:44 -08:00
test_crud.py refactor: convert asset tests to table-driven parametrized tests 2026-02-24 11:34:44 -08:00
test_downloads.py fix: resolve test import errors and module collision in assets_test 2026-02-24 11:34:44 -08:00
test_list_filter.py refactor: convert asset tests to table-driven parametrized tests 2026-02-24 11:34:44 -08:00
test_metadata_filters.py Assets Part 2 - add more endpoints (#12125) 2026-01-31 02:22:05 -05:00
test_prune_orphaned_assets.py fix: resolve test import errors and module collision in assets_test 2026-02-24 11:34:44 -08:00
test_tags_api.py fix: resolve test import errors and module collision in assets_test 2026-02-24 11:34:44 -08:00
test_uploads.py Assets Part 2 - add more endpoints (#12125) 2026-01-31 02:22:05 -05:00