HEL-892: document four watermark branches with pinned static sources

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 21:08:43 +08:00
co-authored by multica-agent
parent 11938ca837
commit 459d7fd866
111 changed files with 47013 additions and 14 deletions
@@ -154,6 +154,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
p
for p in DEFINITIONS
if p != PATH
and not p.endswith("/图像4种添加水印节点.json")
and not p.endswith("/birefnet_图像移除背景.json")
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
and not p.endswith(
@@ -162,6 +163,8 @@ def test_real_document_and_frozen_old_fourteen_blocks():
)
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
now = json.loads((REPO / resource).read_bytes())
watermark = next(p for p in now if p.endswith("/图像4种添加水印节点.json"))
now[watermark].pop("fixed_version_document")
birefnet = next(p for p in now if p.endswith("/birefnet_图像移除背景.json"))
now[birefnet].pop("fixed_version_document")
latent = next(p for p in now if p.endswith("/加载本地latent解码.json"))
@@ -189,7 +192,7 @@ def test_real_document_and_frozen_old_fourteen_blocks():
assert not doc(review=review)["fixed_version"]["matched"]
now[openpose].pop("fixed_version_document")
old = json.loads(subprocess.check_output(["git", "show", "7291887:" + resource], cwd=REPO))
assert len(now) == 156 and len(DEFINITIONS) == 24
assert len(now) == 156 and len(DEFINITIONS) == 25
old_blocks = [
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
]