ComfyUI/app/assets/api
Matt Miller 5130628ed5
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.10) (push) Waiting to run
Build package / Build Test (3.11) (push) Waiting to run
Build package / Build Test (3.12) (push) Waiting to run
Build package / Build Test (3.13) (push) Waiting to run
Build package / Build Test (3.14) (push) Waiting to run
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 15:19:03 -07:00
..
routes.py Tighten hash field tests and DRY response builder 2026-05-08 15:19:03 -07:00
schemas_in.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
schemas_out.py Emit hash alongside asset_hash on all Asset responses 2026-05-08 15:19:03 -07:00
upload.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00