HEL-892: correct stale output mapping assertions after audio support

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-28 00:07:29 +08:00
co-authored by multica-agent
parent 3cf6ae4241
commit 122c51e47e
2 changed files with 10 additions and 2 deletions
@@ -184,7 +184,7 @@ def test_mapped_node_returning_nothing_fails_for_real(client, fake_comfy):
assert r.status_code == 200, r.text
job = _wait_done(client, r.json()["job"]["id"])
assert job["status"] == "failed"
assert "没有返回任何图片或视频" in job["error"]
assert "没有返回任何图片、视频、音频或文件" in job["error"]
assert "15" in job["error"] # names the node it waited on
assert job["output_paths"] == []
@@ -234,7 +234,7 @@ def test_invalid_mappings_are_rejected_in_chinese(client):
"/api/workflows",
json={"name": "坏映射2", "workflow_json": _vault_workflow(),
"usage": "text2video",
"output_map": [{"nodeId": "12", "kind": "audio"}]},
"output_map": [{"nodeId": "12", "kind": "unsupported_media"}]},
)
assert r.status_code == 422 and "媒体类型" in r.json()["detail"]
@@ -0,0 +1,8 @@
............ [100%]
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-d76d2e50d5fc/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
12 passed, 1 warning in 13.04s