........................................................................ [ 26%] ........................................................................ [ 52%] ........................................................................ [ 78%] ................F........................................... [100%] =================================== FAILURES =================================== ______ test_krea_original_caches_boundaries_dynamic_branch_and_conflicts _______ def test_krea_original_caches_boundaries_dynamic_branch_and_conflicts(): assert hashlib.sha256(RAW).hexdigest() == ( "a353acdb89b02462abed5f1513acfcb4f538c50ab5bc8ede8e8597f3ce8eea60" ) roots = {n["id"]: n for n in SOURCE["nodes"]} sg = SOURCE["definitions"]["subgraphs"][0] ns = {n["id"]: n for n in sg["nodes"]} assert SOURCE["extra"]["frontendVersion"] == "1.45.19" assert len(roots) == 7 and len(ns) == 21 assert len(SOURCE["links"]) == 3 and len(sg["links"]) == 40 assert roots[49]["widgets_values"] == ["9:16 (Portrait Widescreen)", 2, 8] assert type(roots[49]["widgets_values"][1]) is int assert len(roots[30]["widgets_values"]) == len(sg["inputs"]) == 13 assert sg["widgets"] == [] and "proxyWidgets" not in roots[30]["properties"] assert roots[30]["widgets_values"][3:5] == [1024, 1024] assert ns[5]["widgets_values"] == [1024, 1024, 1] assert [x["link"] for x in ns[5]["inputs"]] == [50, 51, None] assert roots[30]["widgets_values"][10].startswith("Krea2\\") assert ns[10]["widgets_values"][0].startswith("krea2\\") assert ns[10]["properties"]["models"][0]["name"] == "krea2_turbo_fp8_scaled.safetensors" assert "Krea2-cyperpunk_赛博朋克.safetensors" in ns[15]["widgets_values"][0] assert ns[15]["properties"]["models"][0]["name"] == "krea2_darkbrush.safetensors" assert ns[16]["widgets_values"] == ["", 512, "on", 0.7, 64, 0.95, 0.05, 1.05, 0, 0, False, True] presence = next(f for f in BLOCK["fields"] if f["field"] == "sampling_mode.presence_penalty") assert presence["json_type"] == "int" and presence["schema_default"] == "0.0" assert ( "krea2枚举缺失" in next(f for f in BLOCK["fields"] if f["node_id"] == "30:11" and f["field"] == "type")[ "limits" ] ) assert ns[24]["widgets_values"] == [False] and ns[23]["widgets_values"] == [True] assert all(ns[i]["widgets_values"] == [False] for i in [21, 22, 28]) assert all(ns[i]["widgets_values"] == [] for i in [8, 13, 20]) assert {n["node_id"]: len(n["text"]) for n in BLOCK["comments"]} == { "47": 1023, "48": 1657, "50": 1965, "52": 80, } assert 51 not in roots and roots[52]["type"] == "Note" > assert roots[30]["widgets_values"][5] == ns[3]["widgets_values"][0] == 364183343070695 E assert 415588503999704 == 364183343070695 calliope-backend/tests/test_krea_cyperpunk_fixed_document.py:184: 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_krea_cyperpunk_fixed_document.py::test_krea_original_caches_boundaries_dynamic_branch_and_conflicts 1 failed, 275 passed, 1 warning in 5.59s