........................................................................ [ 16%]
........................................................................ [ 33%]
........................................................................ [ 50%]
........................................................................ [ 66%]
........................................................................ [ 83%]
.......................................................F...............  [100%]
=================================== FAILURES ===================================
___________ test_inventory_all_instances_and_frozen_previous_reviews ___________

    def test_inventory_all_instances_and_frozen_previous_reviews():
     inv=json.loads((OUT/'independent-inventory.json').read_bytes())
     assert [f['pointer'] for f in inv['fields']]==[f['pointer'] for f in BLOCK['fields']]
     assert len(BLOCK['fields'])==67 and len(BLOCK['comments'])==1
     assert sum(f['scope']=='root' for f in BLOCK['fields'])==18
     assert len({f['scope'] for f in BLOCK['fields']})==6
     assert [e['state'] for e in inv['empty']]==['list']*5+['missing']
     assert BLOCK['comments'][0]['text']==pointer(SOURCE,BLOCK['comments'][0]['pointer'])
     resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
     old=json.loads(subprocess.check_output(['git','show','a7ea35daecd51369d28e42e92536252776ea5d7b:'+resource],cwd=REPO))
     cur=json.loads((REPO/resource).read_bytes());cur[PATH].pop('fixed_version_document');assert cur==old
     blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
>    assert len(blocks)==37 and sum(len(b['fields']) for b in blocks)==1281 and sum(len(b['comments']) for b in blocks)==40
                                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

calliope-backend/tests/test_moge3_fixed_document.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f1d77b985e0>

>   assert len(blocks)==37 and sum(len(b['fields']) for b in blocks)==1281 and sum(len(b['comments']) for b in blocks)==40
                                                                                       ^^^^^^^^^^^^^
E   KeyError: 'comments'

calliope-backend/tests/test_moge3_fixed_document.py:156: KeyError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
  /home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-c5b13bb9a9b3/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_moge3_fixed_document.py::test_inventory_all_instances_and_frozen_previous_reviews
1 failed, 430 passed, 1 warning in 5.32s
