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

393 lines
22 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
......................................................FFFFFFFFFFFFFFFFFF [ 37%]
FF...................................................................... [ 75%]
.............................................. [100%]
=================================== FAILURES ===================================
______ test_each_position_or_description_forgery_refused[value-123.video] ______
f = {'field': 'video', 'label': '输入视频文件引用', 'type': 'COMBO', 'schema_default': 'input目录视频动态枚举,无固定默认', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'video'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
___ test_each_position_or_description_forgery_refused[value-123.force_rate] ____
f = {'field': 'force_rate', 'label': '强制加载采样帧率', 'type': 'FLOAT/INT(floatOrInt)', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'force_rate'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-123.custom_width] ___
f = {'field': 'custom_width', 'label': '自定义加载宽度', 'type': 'INT', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'custom_width'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-123.custom_height] __
f = {'field': 'custom_height', 'label': '自定义加载高度', 'type': 'INT', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'custom_height'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_ test_each_position_or_description_forgery_refused[value-123.frame_load_cap] __
f = {'field': 'frame_load_cap', 'label': '加载帧数上限', 'type': 'INT', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'frame_load_cap'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_ test_each_position_or_description_forgery_refused[value-123.skip_first_frames] _
f = {'field': 'skip_first_frames', 'label': '跳过起始采样帧', 'type': 'INT', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'skip_first_frames'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_ test_each_position_or_description_forgery_refused[value-123.select_every_nth] _
f = {'field': 'select_every_nth', 'label': '间隔抽取采样帧', 'type': 'INT', 'schema_default': '1', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'select_every_nth'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_____ test_each_position_or_description_forgery_refused[value-123.format] ______
f = {'field': 'format', 'label': '加载格式约束', 'type': 'COMBO', 'schema_default': 'AnimateDiff', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'format'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-123.videopreview] ___
f = {'field': 'videopreview', 'label': '历史视频预览完整对象', 'type': '前端历史状态', 'schema_default': '无服务端默认', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'videopreview'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
___ test_each_position_or_description_forgery_refused[value-124.frame_rate] ____
f = {'field': 'frame_rate', 'label': '合成播放帧率', 'type': 'FLOAT/INT(floatOrInt)', 'schema_default': '8', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'frame_rate'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
___ test_each_position_or_description_forgery_refused[value-124.loop_count] ____
f = {'field': 'loop_count', 'label': '合成画面循环次数', 'type': 'INT', 'schema_default': '0', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'loop_count'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_ test_each_position_or_description_forgery_refused[value-124.filename_prefix] _
f = {'field': 'filename_prefix', 'label': '输出文件名前缀', 'type': 'STRING', 'schema_default': 'AnimateDiff', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'filename_prefix'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_____ test_each_position_or_description_forgery_refused[value-124.format] ______
f = {'field': 'format', 'label': '合成编码格式', 'type': 'COMBO', 'schema_default': 'schema首项image/gif;函数缺省image/gif', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'format'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_____ test_each_position_or_description_forgery_refused[value-124.pix_fmt] _____
f = {'field': 'pix_fmt', 'label': '编码像素格式', 'type': 'COMBO', 'schema_default': '首项yuv420p', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'pix_fmt'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
_______ test_each_position_or_description_forgery_refused[value-124.crf] _______
f = {'field': 'crf', 'label': 'H264质量控制数值', 'type': 'INT', 'schema_default': '19', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'crf'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-124.save_metadata] __
f = {'field': 'save_metadata', 'label': '保存编码元数据', 'type': 'BOOLEAN', 'schema_default': 'true', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'save_metadata'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-124.trim_to_audio] __
f = {'field': 'trim_to_audio', 'label': '合成时按音频裁切开关', 'type': 'BOOLEAN', 'schema_default': 'false', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'trim_to_audio'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
____ test_each_position_or_description_forgery_refused[value-124.pingpong] _____
f = {'field': 'pingpong', 'label': '合成往返帧序开关', 'type': 'BOOLEAN', 'schema_default': 'false', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'pingpong'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
___ test_each_position_or_description_forgery_refused[value-124.save_output] ___
f = {'field': 'save_output', 'label': '合成保存目录选择', 'type': 'BOOLEAN', 'schema_default': 'true', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'save_output'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
__ test_each_position_or_description_forgery_refused[value-124.videopreview] ___
f = {'field': 'videopreview', 'label': '历史视频预览完整对象', 'type': '前端历史状态', 'schema_default': '无服务端默认', ...}
variant = 'value'
@pytest.mark.parametrize("f", BLOCK["fields"], ids=lambda f: f["node_id"] + "." + f["field"])
@pytest.mark.parametrize("variant", ["value", "text"])
def test_each_position_or_description_forgery_refused(f, variant):
s, r = copy.deepcopy(SOURCE), copy.deepcopy(REVIEW)
if variant == "text":
r["fixed_version_document"]["fields"][BLOCK["fields"].index(f)]["effect"] = "forged"
else:
parent, _, key = f["pointer"].rpartition("/")
> pointer(s, parent)[int(key)] = "forged"
^^^^^^^^
E ValueError: invalid literal for int() with base 10: 'videopreview'
calliope-backend/tests/test_simple_vfi_fixed_document.py:70: ValueError
=============================== warnings summary ===============================
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-d5ce944d75e0/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_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.video]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.force_rate]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.custom_width]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.custom_height]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.frame_load_cap]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.skip_first_frames]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.select_every_nth]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.format]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-123.videopreview]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.frame_rate]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.loop_count]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.filename_prefix]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.format]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.pix_fmt]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.crf]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.save_metadata]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.trim_to_audio]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.pingpong]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.save_output]
FAILED calliope-backend/tests/test_simple_vfi_fixed_document.py::test_each_position_or_description_forgery_refused[value-124.videopreview]
20 failed, 170 passed, 1 warning in 4.75s