ComfyUI/tests-unit/app_test
abhay-codes07 7f747f0e68
Fix model file list cache never being reused
cache_model_file_list_ compared os.path.getmtime(folder) (a float)
against model_file_list_cache[1] (the dirs dict), which is always
unequal, so the check returned None on every call and the model tree
was re-walked on each /experiment/models request.

The top-level folder was also never recorded in dirs, so drop the
broken scalar comparison and instead seed the folder's own mtime into
dirs (matching folder_paths.recursive_search) so it is validated by the
existing per-directory loop and direct additions still invalidate the cache.
2026-07-12 14:53:28 +05:30
..
__init__.py Add FrontendManager to manage non-default front-end impl (#3897) 2024-07-16 11:26:11 -04:00
custom_node_manager_test.py [i18n] Add /i18n endpoint to provide all custom node translations (#6558) 2025-01-22 17:15:45 -05:00
frontend_manager_test.py Generalize frontend version warning to all comfy* requirements.txt entries (#13875) 2026-05-14 16:13:30 -07:00
model_file_cache_test.py Fix model file list cache never being reused 2026-07-12 14:53:28 +05:30
model_manager_test.py feat(api): expose registered extension filters on /experiment/models (#14797) 2026-07-09 12:59:30 -07:00
node_replace_manager_test.py fix: make NodeReplaceManager.register() idempotent (#13596) 2026-05-07 19:21:12 -07:00
test_migrations.py feat(assets): add namespaced model_type tags and align tag semantics (#14511) 2026-07-08 22:00:08 -07:00
user_manager_system_user_test.py feat(security): add System User protection with __ prefix (#10966) 2025-11-28 21:28:42 -05:00