359 lines
28 KiB
Plaintext
359 lines
28 KiB
Plaintext
..FFFF.................................FFFF............................. [ 21%]
|
||
........................................................................ [ 43%]
|
||
........................................................................ [ 65%]
|
||
........................................................................ [ 87%]
|
||
..........................F............. [100%]
|
||
=================================== FAILURES ===================================
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.filename_prefix] _
|
||
|
||
f = {'label': '视频保存文件名前缀', 'schema_default': 'video/ComfyUI', 'unit': '文本', 'limits': '准确实现用output目录及计数命名', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3ad8c90>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3ad8c90> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa38cdd80>()
|
||
E + where <built-in method decode of bytes object at 0x560aa38cdd80> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format] _
|
||
|
||
f = {'label': '保存容器选择', 'schema_default': 'auto', 'unit': '枚举', 'limits': '准确0.28.1为平面Combo,选项见固定VideoContainer', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format.codec] _
|
||
|
||
f = {'label': '源保存的嵌套编码选择', 'schema_default': '未知:准确schema无此项', 'unit': '源动态分支保存文本', 'limits': '准确SaveVideo无format.codec字段', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b2e8f0>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3b2e8f0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b2dcb0>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3b2dcb0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.codec] _
|
||
|
||
f = {'label': '保存编码器选择', 'schema_default': 'auto', 'unit': '枚举', 'limits': '准确0.28.1平面codec Combo;与format.codec位置分开', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.fps] _
|
||
|
||
f = {'label': '视频重组帧率缓存', 'schema_default': '30.0', 'unit': '帧/秒', 'limits': '1.0~120.0,step1.0', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa2c2ea00>()
|
||
E + where <built-in method splitlines of str object at 0x560aa2c2ea00> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b99c30>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3b99c30> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.bit_depth] _
|
||
|
||
f = {'label': '视频重组位深缓存', 'schema_default': '8', 'unit': '位', 'limits': 'INT 8~10,step2;源输入COMBO与准确INT不一致', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3ba0fd0>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3ba0fd0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3b31b40>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3b31b40> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.color_space] _
|
||
|
||
f = {'label': '源保存的重组色彩空间', 'schema_default': '未知:准确schema无此项', 'unit': '源枚举标签', 'limits': '准确CreateVideo没有color_space输入,GetVideoComponents也无该出口', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b342e0>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3b342e0> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ab1130>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3ab1130> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
_ test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.codec] _
|
||
|
||
f = {'label': '源保存的重组编码标签', 'schema_default': '未知:准确schema无此项', 'unit': '源枚举标签', 'limits': '准确CreateVideo没有codec参数', ...}
|
||
|
||
@pytest.mark.parametrize(
|
||
"f", BLOCK["fields"], ids=lambda f: f["scope"] + ":" + f["node_id"] + "." + f["field"]
|
||
)
|
||
def test_each_saved_position_dual_storage_type_scope_and_exact_source(f):
|
||
v = pointer(SOURCE, f["pointer"])
|
||
named = pointer(SOURCE, f["named_pointer"])
|
||
assert canonical(v) == canonical(f["value"]) and type(v).__name__ == f["json_type"]
|
||
assert named == ({"images": v} if f["field"] == "rgthree_comparer" else v)
|
||
for k in [
|
||
"effect",
|
||
"limits",
|
||
"schema_default",
|
||
"unit",
|
||
"execution_note",
|
||
"role",
|
||
"label",
|
||
"type",
|
||
]:
|
||
assert f[k]
|
||
assert f["named_pointer"] in f["execution_note"]
|
||
for k in f["evidence"]:
|
||
e = BLOCK["sources"][k]
|
||
raw = (OUT / e["local_file"]).read_bytes()
|
||
assert hashlib.sha256(raw).hexdigest() == e["sha256"]
|
||
> assert (
|
||
1 <= e["lines"][0] <= e["lines"][1] <= len(raw.decode().splitlines())
|
||
and len(e["commit"]) == 40
|
||
)
|
||
E AssertionError: assert (51 <= 50)
|
||
E + where 50 = len(['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...])
|
||
E + where ['from dataclasses import dataclass', 'from enum import Enum', 'from fractions import Fraction', 'from typing import Optional', 'from .._input import ImageInput, AudioInput, MaskInput', '', ...] = <built-in method splitlines of str object at 0x560aa3b31b40>()
|
||
E + where <built-in method splitlines of str object at 0x560aa3b31b40> = 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.splitlines
|
||
E + where 'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optional...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n' = <built-in method decode of bytes object at 0x560aa3ba0fd0>()
|
||
E + where <built-in method decode of bytes object at 0x560aa3ba0fd0> = b'from dataclasses import dataclass\nfrom enum import Enum\nfrom fractions import Fraction\nfrom typing import Optiona...\n audio: Optional[AudioInput] = None\n metadata: Optional[dict] = None\n alpha: Optional[MaskInput] = None\n'.decode
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:67: AssertionError
|
||
________ test_old_thirty_one_objects_and_entire_other_reviews_unchanged ________
|
||
|
||
def test_old_thirty_one_objects_and_entire_other_reviews_unchanged():
|
||
resource='calliope-backend/src/calliope/comfyui/source_reviews.json'
|
||
old=json.loads(subprocess.check_output(['git','show','291ff48:'+resource],cwd=REPO))
|
||
now=json.loads((REPO/resource).read_bytes());now[PATH].pop('fixed_version_document')
|
||
assert now==old and len(DEFINITIONS)==32
|
||
blocks=[r['fixed_version_document'] for r in old.values() if 'fixed_version_document' in r]
|
||
> assert len(blocks)==31 and sum(len(b['fields']) for b in blocks)==941 and sum(len(b.get('comments',[])) for b in blocks)==22
|
||
E AssertionError: assert (31 == 31 and 941 == 941 and 21 == 22)
|
||
E + where 31 = len([{'notice': '固定版本参考说明:节点按源声明分别核对固定提交;前端未声明,1.37.11仅显式假设;aux发布包与提交绑定、UE与目标环境未知', 'source_path': 'example_ComfyUI_workfl...ef7118e4950b37a608', 'canonical_sha256': '8881dcd31b226e95d9ce141e5f06067f4d5cb4bd11af88104d779422478d6201', ...}, ...])
|
||
E + and 941 = sum(<generator object test_old_thirty_one_objects_and_entire_other_reviews_unchanged.<locals>.<genexpr> at 0x7f22a1b7fa00>)
|
||
E + and 21 = sum(<generator object test_old_thirty_one_objects_and_entire_other_reviews_unchanged.<locals>.<genexpr> at 0x7f22a1cdb010>)
|
||
|
||
calliope-backend/tests/test_seedvr2_video_fixed_document.py:198: AssertionError
|
||
=============================== warnings summary ===============================
|
||
calliope-backend/.venv/lib/python3.11/site-packages/starlette/testclient.py:53
|
||
/home/xiaomo/multica_workspaces/hello-af23464d222e/hel-892-0bda4b003ea3/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_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.filename_prefix]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.format.codec]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[root:76.codec]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.fps]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.bit_depth]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.color_space]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_each_saved_position_dual_storage_type_scope_and_exact_source[subgraph:1970dcb4-982a-4c01-a373-4d239a3041e4:75.codec]
|
||
FAILED calliope-backend/tests/test_seedvr2_video_fixed_document.py::test_old_thirty_one_objects_and_entire_other_reviews_unchanged
|
||
9 failed, 319 passed, 1 warning in 5.20s
|