From e0774d09256b3bb88dcfff25585f686c86ca3c8e Mon Sep 17 00:00:00 2001 From: Simon Pinfold Date: Tue, 18 Aug 2026 12:20:02 -0700 Subject: [PATCH] chore: comment cleanup Comment-Gate: 2 quarantined --- app/assets/services/path_utils.py | 5 ++--- tests-unit/assets_test/test_semantics_reset.py | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/services/path_utils.py b/app/assets/services/path_utils.py index 7bdec3d25..683ed2481 100644 --- a/app/assets/services/path_utils.py +++ b/app/assets/services/path_utils.py @@ -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))) diff --git a/tests-unit/assets_test/test_semantics_reset.py b/tests-unit/assets_test/test_semantics_reset.py index 0fcad4b70..48fd8b4f9 100644 --- a/tests-unit/assets_test/test_semantics_reset.py +++ b/tests-unit/assets_test/test_semantics_reset.py @@ -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,