Files
aigc-home/docs/hel-892/vosr2-document-evidence/pytest-initial.txt
T

30 lines
2.6 KiB
Plaintext

........................................................................ [ 26%]
........................................................................ [ 52%]
........................................................................ [ 79%]
...........................................F............. [100%]
=================================== FAILURES ===================================
_______________ test_old_32_blocks_and_all_other_reviews_frozen ________________
def test_old_32_blocks_and_all_other_reviews_frozen():
path='calliope-backend/src/calliope/comfyui/source_reviews.json'
old=json.loads(subprocess.check_output(['git','show','282c0e8:'+path],cwd=REPO))
now=json.loads((REPO/path).read_bytes());now[PATH].pop('fixed_version_document')
assert old==now and len(DEFINITIONS)==33
blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
> assert len(blocks)==32 and sum(len(b['fields']) for b in blocks)==988 and sum(len(b.get('comments',[])) for b in blocks)==24
E AssertionError: assert (32 == 32 and 988 == 988 and 23 == 24)
E + where 32 = len([{'notice': '固定版本参考说明:节点按源声明分别核对固定提交;前端未声明,1.37.11仅显式假设;aux发布包与提交绑定、UE与目标环境未知', 'source_path': 'example_ComfyUI_workfl...ef7118e4950b37a608', 'canonical_sha256': '8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201', ...}, ...])
E + and 988 = sum(<generator object test_old_32_blocks_and_all_other_reviews_frozen.<locals>.<genexpr> at 0x7fb5d85d1b60>)
E + and 23 = sum(<generator object test_old_32_blocks_and_all_other_reviews_frozen.<locals>.<genexpr> at 0x7fb5d858fa60>)
calliope-backend/tests/test_vosr2_fixed_document.py:166: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-2a616a58e8ec/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_vosr2_fixed_document.py::test_old_32_blocks_and_all_other_reviews_frozen
1 failed, 272 passed, 1 warning in 4.87s