ComfyUI/tests-unit/assets_test/services
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
..
__init__.py Refactor asset database: separate business logic from queries 2026-02-24 11:34:43 -08:00
conftest.py fix: remaining ruff linting errors in services tests 2026-02-24 11:34:44 -08:00
test_asset_management.py refactor: use explicit dataclasses instead of ORM objects in service layer 2026-02-24 11:34:44 -08:00
test_bulk_ingest.py Populate mime_type for assets in scanner and API paths 2026-02-24 11:34:44 -08:00
test_ingest.py Make ingest_file_from_path and register_existing_asset private 2026-02-24 11:34:44 -08:00
test_tagging.py refactor: add explicit types to asset service functions 2026-02-24 11:34:44 -08:00