HEL-892: document four watermark branches with pinned static sources
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -213,6 +213,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
|
||||
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")
|
||||
for added in [
|
||||
@@ -230,7 +232,7 @@ def test_exact_graph_and_original_seventeen_unchanged():
|
||||
]:
|
||||
now[added].pop("fixed_version_document")
|
||||
assert now[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert now == old and len(DEFINITIONS) == 24
|
||||
assert now == old and len(DEFINITIONS) == 25
|
||||
blocks = [r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r]
|
||||
assert len(blocks) == 17 and sum(len(b["fields"]) for b in blocks) == 495
|
||||
assert (
|
||||
@@ -239,6 +241,8 @@ def test_exact_graph_and_original_seventeen_unchanged():
|
||||
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
for p in DEFINITIONS:
|
||||
if p == watermark:
|
||||
continue
|
||||
if p.endswith("/birefnet_图像移除背景.json"):
|
||||
continue
|
||||
if p.endswith(
|
||||
|
||||
Reference in New Issue
Block a user