........................................................................ [ 15%] ........................................................................ [ 30%] ........................................................................ [ 46%] ........................................................................ [ 61%] ........................................................................ [ 77%] ........................................................................ [ 92%] ...................F.............. [100%] =================================== FAILURES =================================== ______ test_exact_declared_output_and_empty_backend_return[233-core0359] _______ nid = 233, key = 'core0359' @pytest.mark.parametrize( "nid,key", [(295, "core0375"), (234, "core0367"), (322, "core0376"), (617, "core051"), (233, "core0359")], ) def test_exact_declared_output_and_empty_backend_return(nid, key): n = next(n for n in SOURCE["nodes"] if n["id"] == nid) assert n["outputs"] == [{"name": "image_urls", "type": "STRING"}] if n["type"] == "PreviewImage": assert n["widgets_values"] == [] e = next(e for e in BLOCK["sources"] if e["id"] == key and e["file"] == "nodes.py") tree = ast.parse((OUT / e["local_file"]).read_bytes()) save = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "SaveImage") ret = next( c.value for c in save.body if isinstance(c, ast.Assign) and any(isinstance(t, ast.Name) and t.id == "RETURN_TYPES" for t in c.targets) ) assert isinstance(ret, ast.Tuple) and ret.elts == [] if n["type"] == "PreviewImage": c = next(c for c in tree.body if isinstance(c, ast.ClassDef) and c.name == "PreviewImage") assert [ast.unparse(b) for b in c.bases] == ["SaveImage"] effect = next( z["effect"] for z in doc()["fixed_version"]["zero_saved_nodes"] if z["node_id"] == str(nid) ) else: effect = next( f["effect"] for f in doc()["fixed_version"]["fields"] if f["node_id"] == str(nid) ) > assert "源声明STRING" in effect and "接口差异" in effect E AssertionError: assert ('源声明STRING' in 'PreviewImage准确core0.3.59,接232 Reel合成图2069,widgets_values=[]零位置。源声明STRING image_urls出口,与准确PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images分层;不是outputs=[],出口未接、不修图、不认证恢复,执行关闭,不请求或保存预览媒体。 原始mode=0;活动保存态不等于可靠可执行。' and '接口差异' in 'PreviewImage准确core0.3.59,接232 Reel合成图2069,widgets_values=[]零位置。源声明STRING image_urls出口,与准确PreviewImage继承SaveImage空RETURN_TYPES、save_images仅ui.images分层;不是outputs=[],出口未接、不修图、不认证恢复,执行关闭,不请求或保存预览媒体。 原始mode=0;活动保存态不等于可靠可执行。') calliope-backend/tests/test_zimage_wash_fixed_document.py:206: AssertionError =============================== warnings summary =============================== calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53 /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-8d94b12fc336/workdir/aigc-home/calliope-backend/.venv/lib/python3.12/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_zimage_wash_fixed_document.py::test_exact_declared_output_and_empty_backend_return[233-core0359] 1 failed, 465 passed, 1 warning in 7.58s