34 lines
2.0 KiB
Plaintext
34 lines
2.0 KiB
Plaintext
.....................................................F............. [100%]
|
|
=================================== FAILURES ===================================
|
|
_____________________ test_old_28_review_objects_unchanged _____________________
|
|
|
|
def test_old_28_review_objects_unchanged():
|
|
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
|
old=json.loads(subprocess.check_output(['git','show','82621b3:'+resource],cwd=REPO))
|
|
now=json.loads((REPO/resource).read_bytes());now[PATH].pop('fixed_version_document')
|
|
assert now==old and len(DEFINITIONS)==29
|
|
blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
|
assert len(blocks)==28 and sum(len(b['fields']) for b in blocks)==888
|
|
> assert sum(len(b['comments']) for b in blocks)==21
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
calliope-backend/tests/test_rtx_fixed_document.py:154:
|
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|
|
|
|
.0 = <list_iterator object at 0x7f5aca6e2f20>
|
|
|
|
> assert sum(len(b['comments']) for b in blocks)==21
|
|
^^^^^^^^^^^^^
|
|
E KeyError: 'comments'
|
|
|
|
calliope-backend/tests/test_rtx_fixed_document.py:154: KeyError
|
|
=============================== warnings summary ===============================
|
|
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-a37aa97e7d86/workdir/aigc-home/calliope-backend/.venv/lib/python3.11/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_rtx_fixed_document.py::test_old_28_review_objects_unchanged
|
|
1 failed, 66 passed, 1 warning in 4.50s
|