Files
aigc-home/docs/hel-892/sam3-document-evidence/backend-second.txt
T
2026-10-30 21:59:57 +08:00

29 lines
2.1 KiB
Plaintext

........................................................................ [ 33%]
........................................................................ [ 67%]
.......................................................F............. [100%]
=================================== FAILURES ===================================
______________ test_source_counts_semantics_and_whole_old_reviews ______________
def test_source_counts_semantics_and_whole_old_reviews():
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
old=json.loads(subprocess.check_output(['git','show','8b4b9ca:'+resource],cwd=REPO))
now=json.loads((REPO/resource).read_bytes())
b=now[PATHS[0]].pop('fixed_version_document')
assert now==old and len(DEFINITIONS)==27
oldblocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
assert len(oldblocks)==26 and sum(len(b['fields']) for b in oldblocks)==820
> assert sum(len(b.get('comments', [])) for b in oldblocks)==16
E assert 15 == 16
E + where 15 = sum(<generator object test_source_counts_semantics_and_whole_old_reviews.<locals>.<genexpr> at 0x7fef871f9c60>)
calliope-backend/tests/test_sam3_fixed_document.py:170: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-b15650a071f9/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_sam3_fixed_document.py::test_source_counts_semantics_and_whole_old_reviews
1 failed, 212 passed, 1 warning in 4.77s