mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-19 15:55:21 +08:00
chore: comment cleanup
Comment-Gate: 2 quarantined
This commit is contained in:
@@ -332,9 +332,8 @@ def get_path_derived_tag_vocabulary() -> set[str]:
|
||||
vocabulary.update(_KNOWN_SUBFOLDER_TAGS)
|
||||
for folder_name, _bases, _extensions in get_comfy_models_folders():
|
||||
vocabulary.add(f"model_type:{folder_name}")
|
||||
# Stored tag names reach the database through normalize_tags, so an
|
||||
# un-normalized vocabulary entry would never match one and the stale tag
|
||||
# it is meant to authorise removing would survive.
|
||||
# Stored names reach the database through normalize_tags, so an un-normalized
|
||||
# entry would never match the tag it exists to authorise removing.
|
||||
return set(normalize_tags(list(vocabulary)))
|
||||
|
||||
|
||||
|
||||
@@ -384,7 +384,6 @@ class TestTagReprojection:
|
||||
def test_vocabulary_matches_tags_as_the_database_stores_them(
|
||||
self, session, comfy_dirs
|
||||
):
|
||||
"""Stored names arrive normalized, so a raw vocabulary entry never matches."""
|
||||
path = _write(comfy_dirs["checkpoints"], "model.safetensors")
|
||||
_register(
|
||||
session,
|
||||
|
||||
Reference in New Issue
Block a user