34 lines
2.3 KiB
Plaintext
34 lines
2.3 KiB
Plaintext
..................................................F [100%]
|
|
=================================== FAILURES ===================================
|
|
____ test_frontend_requires_explicit_1486_and_fixed_restore_order_evidence _____
|
|
|
|
def test_frontend_requires_explicit_1486_and_fixed_restore_order_evidence():
|
|
p1486 = "comfy-frontend-1.48.6-scail-load-8e4d7947-info-537f3a02-kj-ab72eda7-reference"
|
|
assert convert_reference(graph(), p1486).prompt is None
|
|
assert audit.profile_attempt(graph(), p1486)["status"] == "not_applicable"
|
|
js = (ROOT / "web__js__VHS.core.js").read_text()
|
|
assert "w.value = widgetDict[w.name];" in js
|
|
assert "w.callback?.(w.value)" in js
|
|
assert "if (v == 0)" in js
|
|
assert "const s = this.options.step" in js
|
|
assert "Math.round((v - sh) / s) * s + sh" in js
|
|
py = (ROOT / "videohelpersuite__load_video_nodes.py").read_text()
|
|
cls = py[py.index("class LoadVideoUpload:") : py.index("class LoadVideoPath:")]
|
|
assert cls.index('"custom_width"') < cls.index('"format"')
|
|
assert "step" not in next(line for line in cls.splitlines() if '"custom_width"' in line)
|
|
assert '"format": get_load_formats()' in cls
|
|
> assert SCAIL_LOAD_COMMIT in json.dumps(json.loads((ROOT / "sources.json").read_text()))
|
|
^^^^^^^^^^^^^^^^^
|
|
E NameError: name 'SCAIL_LOAD_COMMIT' is not defined
|
|
|
|
calliope-backend/tests/test_scail_load_reference.py:280: NameError
|
|
=============================== warnings summary ===============================
|
|
calliope-backend/.venv/lib/python3.12/site-packages/starlette/testclient.py:53
|
|
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-982097d0db27/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_scail_load_reference.py::test_frontend_requires_explicit_1486_and_fixed_restore_order_evidence
|
|
1 failed, 50 passed, 1 warning in 0.28s
|