mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-22 01:03:33 +08:00
Renames so the code states its own invariants: _SINGLETON_ROW_ID for the one-row version table, get_tag_origins_by_reference so the inner mapping's direction is in the name, _ROWS_PER_TRANSACTION for what the batch size bounds. In the tests, a named helper replaces the explanation of why the engine is shared across sessions, a named constant replaces the empty-string "any unique hash" sentinel, and each test's claim moves into its assertion message, where whoever's build just went red will actually read it.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/