Files
aigc-home/docs/hel-892/sdpose-document-evidence/tests-new-development-failure.txt
T
2026-10-30 14:41:12 +08:00

73 lines
3.1 KiB
Plaintext

........................................................................ [ 37%]
........................................................................ [ 75%]
...........................................F.. [100%]
=================================== FAILURES ===================================
_________ test_exact_topology_nulls_conditions_and_reference_identity __________
def test_exact_topology_nulls_conditions_and_reference_identity():
assert BLOCK["source_sha256"] == hashlib.sha256(RAW).hexdigest()
assert BLOCK["canonical_sha256"] == hashlib.sha256(canonical(SOURCE)).hexdigest()
assert len(SOURCE["nodes"]) == 9 and len(SOURCE["links"]) == 10
assert [e[0] for e in SOURCE["links"]] == [
1725,
1732,
1733,
1734,
1735,
1736,
1737,
1738,
1739,
1740,
]
assert SOURCE["links"][-2:] == [
[1739, 685, 1, 681, 1, "AUDIO"],
[1740, 685, 2, 681, 2, "FLOAT"],
]
assert all(n["mode"] == 0 for n in SOURCE["nodes"])
assert len(BLOCK["fields"]) == 18 and len(BLOCK["comments"]) == 1
assert sum(f["role"] == "source_named_unconfirmed" for f in BLOCK["fields"]) == 8
assert sum(f["role"] == "linked_saved" for f in BLOCK["fields"]) == 1
for n in BLOCK["comments"]:
assert pointer(SOURCE, n["pointer"]) == n["text"]
assert "widgets_values" not in SOURCE["nodes"][2]
assert SOURCE["nodes"][2].get("widgets_values") is None
assert BLOCK["zero_saved_nodes"][0]["node_id"] == "685"
fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
assert fields["681", "fps"]["value"] == 30 and fields["681", "fps"]["json_type"] == "int"
assert fields["683", "resize_type.longer_size"]["value"] == 1024
assert [f["value"] for f in BLOCK["fields"] if f["node_id"] == "686"] == [
True,
True,
True,
True,
4,
2,
0.5,
]
assert {e["commit"] for e in BLOCK["sources"]} == {
"b874bd2b8c324d58cfc37bff0754dd16815a8f3c",
"3dd10a59c00248d00f0cb0ab794ff1bb9fb00a5f",
"d91c283b7b758787b4d29126c1a9ac39dc14d6a7",
}
> assert all(
t in "".join(BLOCK["flow"])
for t in [
"外线覆盖",
"未知",
"不同流程缓存",
"未找到",
"UE7.7.1",
"没有widgets_values键",
"bboxes",
"不产prompt",
]
)
E assert False
E + where False = all(<generator object test_exact_topology_nulls_conditions_and_reference_identity.<locals>.<genexpr> at 0x7f73e3c8ff10>)
calliope-backend/tests/test_sdpose_fixed_document.py:218: AssertionError
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_exact_topology_nulls_conditions_and_reference_identity
1 failed, 189 passed, 1 warning in 0.39s