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

35 lines
2.6 KiB
Plaintext

........................................................................ [ 12%]
........................................................................ [ 24%]
........................................................................ [ 36%]
........................................................................ [ 48%]
........................................................................ [ 60%]
........................................................................ [ 73%]
........................................................................ [ 85%]
......................................................................F. [ 97%]
............... [100%]
=================================== FAILURES ===================================
____________ test_old_thirty_six_blocks_and_other_reviews_unchanged ____________
def test_old_thirty_six_blocks_and_other_reviews_unchanged():
resource = "calliope-backend/src/calliope/comfyui/source_reviews.json"
old = json.loads(subprocess.check_output(["git","show",f"cf90d2ae96bc3dc2da40b2fdf2ca22b8335433e9:{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)==36 and sum(len(b["fields"]) for b in blocks)==1195
> assert sum(len(b.get("comments",[])) for b in blocks)==28
E assert 27 == 28
E + where 27 = sum(<generator object test_old_thirty_six_blocks_and_other_reviews_unchanged.<locals>.<genexpr> at 0x7f1542776f20>)
calliope-backend/tests/test_seedvr2_loop_fixed_document.py:202: AssertionError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-e86e7cb33db6/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_seedvr2_loop_fixed_document.py::test_old_thirty_six_blocks_and_other_reviews_unchanged
1 failed, 590 passed, 1 warning in 6.31s