........................................................................ [ 10%]
........................................................................ [ 20%]
........................................................................ [ 31%]
........................................................................ [ 41%]
........................................................................ [ 52%]
........................................................................ [ 62%]
........................................................................ [ 73%]
........................................................................ [ 83%]
........................................................................ [ 94%]
..............F........................                                  [100%]
=================================== FAILURES ===================================
______________ test_exact_graph_and_original_seventeen_unchanged _______________

    def test_exact_graph_and_original_seventeen_unchanged():
        d = doc()
        assert d["fixed_version"]["matched"]
        assert len(BLOCK["fields"]) == 21 and BLOCK["comments"] == []
        assert sum(isinstance(f["value"], dict) for f in BLOCK["fields"]) == 2
        nodes = {n["id"]: n for n in SOURCE["nodes"]}
        assert {k: len(n["widgets_values"]) for k, n in nodes.items()} == {20: 0, 21: 11, 1: 10, 15: 0}
        assert all(n["mode"] == 0 for n in nodes.values())
        assert "frontendVersion" not in SOURCE["extra"] and "definitions" not in SOURCE
        assert SOURCE["links"] == [
            [15, 1, 0, 20, 0, "IMAGE"],
            [16, 20, 0, 15, 0, "IMAGE"],
            [17, 20, 0, 21, 0, "IMAGE"],
            [18, 1, 2, 21, 1, "AUDIO"],
        ]
        for eid, origin, slot, target, inp, typ in SOURCE["links"]:
            assert eid in nodes[origin]["outputs"][slot]["links"]
            assert nodes[origin]["outputs"][slot]["type"] == typ
            assert nodes[target]["inputs"][inp]["link"] == eid
            assert nodes[target]["inputs"][inp]["type"] == typ
        fields = {(f["node_id"], f["field"]): f for f in BLOCK["fields"]}
        assert fields["1", "force_rate"]["value"] == fields["21", "frame_rate"]["value"] == 16
        assert fields["1", "force_rate"]["json_type"] == "int"
        assert fields["1", "choose video to upload"]["role"] == "frontend_control"
        assert all(
            f["role"] == "frontend_history" for f in BLOCK["fields"] if f["field"] == "videopreview"
        )
        text = "".join(BLOCK["flow"])
        for token in [
            "音频link18",
            "绕过Reverse20",
            "torch.flip(images,[0])",
            "没有frontendVersion",
            "-shortest",
            "RETURN_TYPES",
            "未接",
            "历史",
            "未知",
            "内存",
            "VHS1.7.7",
        ]:
            assert token in text
        assert not BLOCK["counts"]["final_prompt_constructed"]
        resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
        old = json.loads(subprocess.check_output(["git", "show", "ab18cd3:" + resource], cwd=REPO))
        now = json.loads((REPO / resource).read_bytes())
        assert now[PATH].pop("fixed_version_document") == BLOCK
>       assert now == old and len(DEFINITIONS) == 18
E       AssertionError: assert ({'example_Com...[], ...}, ...} == {'example_Com...[], ...}, ...}
E         
E         Omitting 154 identical items, use -vv to show
E         Differing items:
E         {'example_ComfyUI_workflows/0-基础处理：图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json': {'source_sha': 'c7ef94870dc39bc22b42009141e...}, {'node_id': '5', 'field': 'custom_height', 'label': '素材加载阶段的自定义高度控件；零值含义待节点定义', 'source_value': 0, ...}, ...], ...}} != {'example_ComfyUI_workflows/0-基础处理：图像合并-音频分离-视频截取合并-图像视频放大/加载图片合成视频.json': {'source_sha': 'c7ef94870dc39bc22b42009141e...}, {'node_id': '5', 'field': 'custom_height', 'label': '素材加载阶段的自定义高度控件；零值含义待节点定义', 'source_value': 0, ...}, ...], ...}}
E         {'example_ComfyUI_workflows/0-基...
E         
E         ...Full output truncated (2 lines hidden), use '-vv' to show)

calliope-backend/tests/test_reverse_fixed_document.py:217: AssertionError
=========================== short test summary info ============================
FAILED calliope-backend/tests/test_reverse_fixed_document.py::test_exact_graph_and_original_seventeen_unchanged
1 failed, 686 passed, 1 warning in 5.20s
