HEL-892: document GIF and image-sequence video references
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -202,12 +202,16 @@ def test_exact_document_topology_and_preservation():
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
previous = json.loads(subprocess.check_output(["git", "show", "fec5cca:" + resource], cwd=REPO))
|
||||
current = json.loads((REPO / resource).read_bytes())
|
||||
for added in [
|
||||
p for p in current if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json"))
|
||||
]:
|
||||
current[added].pop("fixed_version_document")
|
||||
reverse = next(p for p in current if p.endswith("/视频倒放.json"))
|
||||
current[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in current if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
current[nlf].pop("fixed_version_document")
|
||||
assert current[PATH].pop("fixed_version_document") == BLOCK
|
||||
assert current == previous and len(DEFINITIONS) == 18
|
||||
assert current == previous and len(DEFINITIONS) == 20
|
||||
old = [r["fixed_version_document"] for r in previous.values() if "fixed_version_document" in r]
|
||||
assert len(old) == 15 and sum(len(b["fields"]) for b in old) == 394
|
||||
assert sum(len(b.get("comments", [])) for b in old) == 13 # one historical ASR flow note
|
||||
@@ -215,6 +219,8 @@ def test_exact_document_topology_and_preservation():
|
||||
assert d["dependencies"]["check_state"] == "unchecked"
|
||||
assert not doc(path="untrusted.json").get("fixed_version")
|
||||
for p in DEFINITIONS:
|
||||
if p.endswith(("视频转gif动图图片.json", "加载图片合成视频.json")):
|
||||
continue
|
||||
if p in [PATH, nlf, reverse]:
|
||||
continue
|
||||
r = copy.deepcopy(REVIEW)
|
||||
|
||||
Reference in New Issue
Block a user