mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-11 04:22:27 +08:00
ImageProcessingNode and TextProcessingNode set is_deprecated as a class attribute but never forwarded it into the io.Schema built by their shared define_schema(), so /object_info reported deprecated: false for nodes like ResizeImagesByShorterEdgeNode, TextToLowercaseNode, and ReplaceTextNode despite is_deprecated = True on the class. The frontend's hide-deprecated filter reads the schema, not the class attribute, so these nodes kept showing up in search. Forward cls.is_deprecated into io.Schema(...) in both base classes, same as SaveImageDataSetToFolderNode already does directly. Adds a regression test asserting schema.is_deprecated matches the class flag for every dataset node.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/