ComfyUI/tests-unit
Luke Mino-Altherr 58e4bbf01b Add owner_id check to resolve_hash_to_path
Filter asset references by owner visibility so the /view endpoint
only resolves hashes for assets the requesting user can access.
Adds table-driven tests for owner visibility cases.

Amp-Thread-ID: https://ampcode.com/threads/T-019ce377-8bde-7048-bc28-a9df063409f9
Co-authored-by: Amp <amp@ampcode.com>
2026-03-16 09:39:26 -04:00
..
app_test
assets_test Add owner_id check to resolve_hash_to_path 2026-03-16 09:39:26 -04:00
comfy_api_test
comfy_extras_test
comfy_quant
comfy_test
execution_test
folder_paths_test
prompt_server_test
seeder_test
server/utils
server_test
utils
feature_flags_test.py
README.md
requirements.txt
websocket_feature_flags_test.py

Pytest Unit Tests

Install test dependencies

pip install -r tests-unit/requirements.txt

Run tests

pytest tests-unit/