40 lines
2.5 KiB
Plaintext
40 lines
2.5 KiB
Plaintext
........................................................................ [ 48%]
|
|
.............................................................F.......... [ 97%]
|
|
... [100%]
|
|
=================================== FAILURES ===================================
|
|
_______________ test_independent_inventory_and_38_frozen_objects _______________
|
|
|
|
def test_independent_inventory_and_38_frozen_objects():
|
|
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(inv['fields'])==33 and not inv['notes']
|
|
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
|
old=json.loads(subprocess.check_output(['git','show','92b7897ae2c394bb214d6a7fdec0c139b8f09c76:'+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)==38 and sum(len(b['fields']) for b in blocks)==1348
|
|
> assert sum(len(b['comments']) for b in blocks)==41
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
calliope-backend/tests/test_llama_fixed_document.py:140:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
.0 = <list_iterator object at 0x7f56a45b3910>
|
|
|
|
> assert sum(len(b['comments']) for b in blocks)==41
|
|
^^^^^^^^^^^^^
|
|
E KeyError: 'comments'
|
|
|
|
calliope-backend/tests/test_llama_fixed_document.py:140: KeyError
|
|
=============================== warnings summary ===============================
|
|
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-fb2425427ab7/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_llama_fixed_document.py::test_independent_inventory_and_38_frozen_objects
|
|
1 failed, 146 passed, 1 warning in 4.55s
|