ComfyUI/tests-unit/assets_test
Luke Mino-Altherr 4e0282c2a0 refactor(assets): API routes call services directly, extract upload handling
- Refactor routes.py to call service functions directly (no manager layer)
- Extract multipart upload parsing into upload.py
- Update API schemas
- Fix path traversal validation to return 400 instead of 500
- Rename test_tags.py to test_tags_api.py
- Update existing API-level tests

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019c9209-37af-757a-b6e4-af59b4267362
2026-03-03 15:51:52 -08:00
..
queries refactor(assets): database layer — split queries into modules and merge migrations 2026-03-03 15:51:52 -08:00
services refactor(assets): extract services layer from manager and helpers 2026-03-03 15:51:52 -08:00
conftest.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
helpers.py refactor(assets): database layer — split queries into modules and merge migrations 2026-03-03 15:51:52 -08:00
test_assets_missing_sync.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_crud.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_downloads.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_file_utils.py refactor(assets): extract services layer from manager and helpers 2026-03-03 15:51:52 -08:00
test_list_filter.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -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 refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_tags_api.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_uploads.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00