........................................................................ [  1%]
........................................................................ [  3%]
........................................................................ [  5%]
........................................................................ [  6%]
........................................................................ [  8%]
........................................................................ [ 10%]
........................................................................ [ 11%]
........................................................................ [ 13%]
........................................................................ [ 15%]
........................................................................ [ 17%]
........................................................................ [ 18%]
........................................................................ [ 20%]
........................................................................ [ 22%]
........................................................................ [ 23%]
........................................................................ [ 25%]
........................................................................ [ 27%]
........................................................................ [ 28%]
........................................................................ [ 30%]
........................................................................ [ 32%]
........................................................................ [ 34%]
........................................................................ [ 35%]
...F.................................................................... [ 37%]
........................................................................ [ 39%]
........................................................................ [ 40%]
........................................................................ [ 42%]
........................................................................ [ 44%]
........................................................................ [ 45%]
.........................................F.............................. [ 47%]
........................................................................ [ 49%]
........................................................................ [ 51%]
........................................................................ [ 52%]
........................................................................ [ 54%]
........................................................................ [ 56%]
........................................................................ [ 57%]
........................................................................ [ 59%]
........................................................................ [ 61%]
........................................................................ [ 62%]
........................................................................ [ 64%]
........................................................................ [ 66%]
........................................................................ [ 68%]
........................................................................ [ 69%]
........................................................................ [ 71%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 76%]
........................................................................ [ 78%]
........................................................................ [ 79%]
........................................................................ [ 81%]
........................................................................ [ 83%]
........................................................................ [ 85%]
........................................................................ [ 86%]
........................................................................ [ 88%]
........................................................................ [ 90%]
........................................................................ [ 91%]
........................................................................ [ 93%]
........................................................................ [ 95%]
........................................................................ [ 96%]
........................................................................ [ 98%]
..........................................................               [100%]
=================================== FAILURES ===================================
__________ test_exact_topology_counts_modes_unknowns_and_old_objects ___________

    def test_exact_topology_counts_modes_unknowns_and_old_objects():
        d = doc()
        assert d["fixed_version"]["matched"] and d["fixed_version"]["fields"] == BLOCK["fields"]
        assert len(BLOCK["fields"]) == 74 and len(BLOCK["comments"]) == 0
        assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 3
        assert sum(f["value"] is None for f in BLOCK["fields"]) == 1
        assert sum(f["role"] == "unknown_saved" for f in BLOCK["fields"]) == 7
        expected = {
            203: 1,
            334: 1,
            340: 1,
            137: 11,
            339: 1,
            373: 11,
            364: 3,
            362: 7,
            363: 0,
            106: 2,
            374: 9,
            370: 1,
            130: 9,
            208: 1,
            376: 1,
            375: 9,
            365: 0,
            335: 2,
            372: 4,
        }
        nodes = {n["id"]: n for n in SOURCE["nodes"]}
        assert {nid: len(n["widgets_values"]) for nid, n in nodes.items()} == expected
        assert {nid for nid, n in nodes.items() if n["mode"] == 4} == {106, 375, 365}
        assert len(SOURCE["links"]) == 22 and "definitions" not in SOURCE
        assert [e[0] for e in SOURCE["links"]] == [
            570,
            621,
            623,
            624,
            625,
            627,
            629,
            648,
            650,
            651,
            653,
            654,
            655,
            656,
            657,
            658,
            659,
            660,
            661,
            662,
            663,
            665,
        ]
        for eid, origin, slot, target, inp, typ in SOURCE["links"]:
            assert eid in nodes[origin]["outputs"][slot]["links"]
            assert nodes[target]["inputs"][inp]["link"] == eid
>           assert nodes[target]["inputs"][inp]["type"] == typ or typ == "*"
E           AssertionError: assert ('INT,FLOAT' == 'INT'
E             
E             - INT
E             + INT,FLOAT or 'INT' == '*'
E             
E             - *
E             + INT)

calliope-backend/tests/test_nlf_fixed_document.py:238: AssertionError
______________ 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)
        resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
        now = json.loads((REPO / resource).read_bytes())
        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:159: KeyError
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_nlf_fixed_document.py::test_exact_topology_counts_modes_unknowns_and_old_objects
FAILED calliope-backend/tests/test_sdpose_fixed_document.py::test_real_document_and_frozen_old_fourteen_blocks
2 failed, 4232 passed, 1 warning in 20.60s
