mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-21 00:35:38 +08:00
Both positions shared one reference, and the first case removed the stale tag, so the second asserted on a tag that was already gone and passed whether or not trailing whitespace was handled. The test advertised two cases and exercised one, which is worse than covering one honestly: it told the next reader that trailing whitespace was covered. Parametrized, so each case gets its own reference and its own fixtures. Stripping only one end now fails only the matching case -- lstrip fails trailing, rstrip fails leading -- where before either passed.
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/