ComfyUI/tests-unit/assets_test/services
Matt Miller f7558232fa
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
refactor(assets): extract cursor JSON escaping helper; size wire cap above per-field caps
Addresses review feedback on cursor.py:

- Extract the inline escape chain into _apply_wire_compatible_json_escapes()
  with a comment pinning it to the wire format's escape set, so the parity
  intent is explicit rather than reading as an ad-hoc transform.
- Raise MAX_ENCODED_CURSOR_LENGTH to 8192 (comfortably above the ~5.2KB
  worst-case the per-field caps can produce) and drop the mint-time length
  guard. Encoder/decoder symmetry now holds by construction: the encoder
  can't produce a cursor the decode path rejects, so there is no confusing
  user-visible 'cursor too long' failure at mint time.
- Rewrite the two over-wire-cap tests to assert worst-case multibyte and
  escape-heavy values mint and round-trip, instead of being rejected.
2026-06-08 16:56:10 -07:00
..
__init__.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
conftest.py feat(assets): register output files as assets after prompt execution (#12812) 2026-03-24 20:48:55 -07:00
test_asset_management.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
test_bulk_ingest.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00
test_cursor.py refactor(assets): extract cursor JSON escaping helper; size wire cap above per-field caps 2026-06-08 16:56:10 -07:00
test_enrich.py feat(assets): register output files as assets after prompt execution (#12812) 2026-03-24 20:48:55 -07:00
test_image_dimensions.py feat(assets): extract image dimensions at ingest and emit on asset responses (#13991) 2026-06-08 14:27:50 -07:00
test_ingest.py feat(assets): extract image dimensions at ingest and emit on asset responses (#13991) 2026-06-08 14:27:50 -07:00
test_path_utils.py fix(assets): recognize temp directory in asset category resolution (#13159) 2026-03-25 19:59:59 -07:00
test_tag_histogram.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
test_tagging.py refactor(assets): modular architecture + async two-phase scanner & background seeder (#12621) 2026-03-07 20:37:25 -05:00