ComfyUI/tests-unit/assets_test
Matt Miller 01730bd730 Tighten hash field tests and DRY response builder
- Extract assert_hash_fields_consistent() helper that verifies presence
  parity and value equality, replacing body.get()-based assertions that
  treated missing keys and explicit nulls identically.
- Conftest seeded_asset fixture and seed-asset list assertions now check
  key absence directly, so a regression that surfaces null fields would
  be caught (validates exclude_none behavior).
- DRY duplicate hash expression in _build_asset_response.
- Add list-endpoint coverage asserting hash is present and consistent on
  populated assets.
- Add schema-level test asserting AssetCreated inherits the hash field
  from Asset, guarding against future inheritance drift.
2026-05-08 18:56:48 -07:00
..
queries feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
services fix(assets): recognize temp directory in asset category resolution (#13159) 2026-03-25 19:59:59 -07:00
conftest.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07:00
helpers.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07:00
test_assets_missing_sync.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07:00
test_crud.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07:00
test_downloads.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05: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_filter.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07: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): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
test_sync_references.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
test_tags_api.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
test_uploads.py Tighten hash field tests and DRY response builder 2026-05-08 18:56:48 -07:00