68 lines
3.9 KiB
Plaintext
68 lines
3.9 KiB
Plaintext
........................................................................ [ 16%]
|
|
........................................................................ [ 33%]
|
|
........................................................................ [ 50%]
|
|
........................................................................ [ 66%]
|
|
........................................................................ [ 83%]
|
|
.....................................................................F.. [100%]
|
|
=================================== FAILURES ===================================
|
|
______________ test_real_document_and_frozen_old_fourteen_blocks _______________
|
|
|
|
def test_real_document_and_frozen_old_fourteen_blocks():
|
|
d = doc()
|
|
assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
|
|
assert d["status"] == dict(imported=True, doc_done=False, exec_verified=False)
|
|
assert d["dependencies"]["check_state"] == "unchecked"
|
|
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("/birefnet_图像移除背景.json")
|
|
and not p.endswith(("/截取视频每一帧.json", "/加载本地latent解码.json"))
|
|
and not p.endswith(
|
|
("NLF_视频人物动作骨架获取.json", "/视频倒放.json", "双图像或视频合并显示.json")
|
|
)
|
|
)
|
|
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"))
|
|
now[latent].pop("fixed_version_document")
|
|
later = next(p for p in now if p.endswith("/截取视频每一帧.json"))
|
|
now[later].pop("fixed_version_document")
|
|
for added in [
|
|
p
|
|
for p in now
|
|
if p.endswith(
|
|
(
|
|
"视频转gif动图图片.json",
|
|
"加载图片合成视频.json",
|
|
"双图像或视频合并显示.json",
|
|
)
|
|
)
|
|
]:
|
|
now[added].pop("fixed_version_document")
|
|
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"))
|
|
> review["fixed_version_document"] = now[other]["fixed_version_document"]
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
E KeyError: 'fixed_version_document'
|
|
|
|
calliope-backend/tests/test_sdpose_fixed_document.py:190: KeyError
|
|
=============================== warnings summary ===============================
|
|
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-7681e8af13d0/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53: DeprecationWarning: The anyio.abc.BlockingPortal alias is deprecated, use anyio.from_thread.BlockingPortal instead.
|
|
_PortalFactoryType = Callable[[], AbstractContextManager[anyio.abc.BlockingPortal]]
|
|
|
|
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
=========================== short test summary info ============================
|
|
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks
|
|
1 failed, 431 passed, 1 warning in 6.13s
|