HEL-892: add source-bound reverse-video Chinese reference document
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -151,10 +151,14 @@ def test_real_document_and_frozen_old_fourteen_blocks():
|
||||
assert "fixed_version" not in doc(path="untrusted.json")
|
||||
review = copy.deepcopy(REVIEW)
|
||||
other = next(
|
||||
p for p in DEFINITIONS if p != PATH and not p.endswith("NLF_视频人物动作骨架获取.json")
|
||||
p
|
||||
for p in DEFINITIONS
|
||||
if p != PATH and not p.endswith(("NLF_视频人物动作骨架获取.json", "/视频倒放.json"))
|
||||
)
|
||||
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
|
||||
now = json.loads((REPO / resource).read_bytes())
|
||||
reverse = next(p for p in now if p.endswith("/视频倒放.json"))
|
||||
now[reverse].pop("fixed_version_document")
|
||||
nlf = next(p for p in now if p.endswith("NLF_视频人物动作骨架获取.json"))
|
||||
now[nlf].pop("fixed_version_document")
|
||||
openpose = next(p for p in now if p.endswith("openpose-video-姿态检测.json"))
|
||||
@@ -162,7 +166,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) == 17
|
||||
assert len(now) == 156 and len(DEFINITIONS) == 18
|
||||
old_blocks = [
|
||||
r["fixed_version_document"] for r in old.values() if "fixed_version_document" in r
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user