ComfyUI/tests-unit
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
..
app_test feat(security): add System User protection with `__` prefix (#10966) 2025-11-28 21:28:42 -05:00
assets_test Populate mime_type for assets in scanner and API paths 2026-02-24 11:34:44 -08:00
comfy_api_test
comfy_extras_test [V3] converted nodes_images.py to V3 schema (#11206) 2025-12-26 19:39:02 -08:00
comfy_quant Properly save mixed ops. (#11772) 2026-01-10 02:03:57 -05:00
comfy_test
execution_test feat(preview): add per-queue live preview method override (#11261) 2025-12-15 15:57:39 -08:00
folder_paths_test feat(security): add System User protection with `__` prefix (#10966) 2025-11-28 21:28:42 -05:00
prompt_server_test feat(security): add System User protection with `__` prefix (#10966) 2025-11-28 21:28:42 -05:00
seeder_test feat: non-destructive asset pruning with is_missing flag 2026-02-24 11:34:44 -08:00
server/utils
server_test dont cache new locale entry points (#10101) 2025-09-29 12:16:02 -07:00
utils
README.md
feature_flags_test.py Support for async node functions (#8830) 2025-07-10 14:46:19 -04:00
requirements.txt Assets Part 2 - add more endpoints (#12125) 2026-01-31 02:22:05 -05:00
websocket_feature_flags_test.py Support for async node functions (#8830) 2025-07-10 14:46:19 -04:00

README.md

Pytest Unit Tests

Install test dependencies

pip install -r tests-unit/requirements.txt

Run tests

pytest tests-unit/