HEL-892: add source-bound BiRefNet background removal reading notes
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -162,10 +162,12 @@ def test_exact_graph_versions_and_preservation():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
old = json.loads(subprocess.check_output(["git", "show", "9db8857:" + resource], cwd=REPO))
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
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"))
|
||||
now[latent].pop("fixed_version_document")
|
||||
b = now[PATHS[0]].pop("fixed_version_document")
|
||||
assert now == old and len(DEFINITIONS) == 23
|
||||
assert now == old and len(DEFINITIONS) == 24
|
||||
assert len(b["fields"]) == 31 and b["counts"]["history_objects"] == 3
|
||||
assert b["counts"]["scalar_saved_positions"] == 28
|
||||
assert b["comments"] == [] and b["counts"]["linked_saved_fields"] == 0
|
||||
|
||||
Reference in New Issue
Block a user