Files

185 lines
13 KiB
Plaintext

........................................................................ [ 14%]
..........................................................F............. [ 28%]
.............................................................s.......... [ 42%]
....................................sssssss.......s..................... [ 56%]
........................................................................ [ 70%]
.......s................................................................ [ 84%]
........................................................................ [ 98%]
.......... [100%]
================================== FAILURES ===================================
_____ test_refresh_rate_config_write_failure_rolls_back_driver_and_frame ______
tmp_path = WindowsPath('<仓库根目录>/测试相关资料/如何测试/本机测试环境/.local/work/layers-ui-20261009/isolation-pytest/test_refresh_rate_config_write0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x00000163445B46D0>
def test_refresh_rate_config_write_failure_rolls_back_driver_and_frame(
tmp_path,
monkeypatch,
):
store = ConfigStore(project_root=tmp_path)
service = DisplayService(store, driver_kind="mock")
image = Image.new("RGB", (64, 64), (9, 8, 7))
> service.show_image(image, mode="composition")
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_display_service.py:566:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\display\service.py:237: in show_image
self.config_store.set_last_mode(mode)
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\config\store.py:189: in set_last_mode
self.update({"last_mode": mode})
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\config\store.py:159: in update
self._write(config)
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\config\store.py:193: in _write
atomic_write_bytes(
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\persistence.py:14: in atomic_write_bytes
atomic_write_many_bytes(((Path(path), content),))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
writes = ((WindowsPath('<仓库根目录>/测试相关资料/如何测试/本机测试环境/.local/work/layers-ui-20261009...ations",\n "templates"\n ],\n "performance_mode_enabled": false,\n "animation_preview_max_concurrent": 2\n}\n'),)
def atomic_write_many_bytes(writes: Iterable[tuple[Path, bytes]]) -> None:
"""Durably replace one or more files and roll back a failed transaction."""
entries = [(Path(path), bytes(content)) for path, content in writes]
if not entries:
return
targets = [path for path, _content in entries]
if len(set(targets)) != len(targets):
raise ValueError("atomic write transaction contains duplicate paths")
originals: dict[Path, bytes | None] = {}
temporaries: dict[Path, Path] = {}
replaced: list[Path] = []
parents = sorted({target.parent for target in targets}, key=str)
try:
for target, _content in entries:
target.parent.mkdir(parents=True, exist_ok=True)
originals[target] = target.read_bytes() if target.exists() else None
for target, content in entries:
temporary = _write_temporary(target, content)
temporaries[target] = temporary
for parent in parents:
_fsync_directory(parent)
for target, _content in entries:
> os.replace(temporaries[target], target)
E PermissionError: [WinError 5] 拒绝访问。: '<仓库根目录>\\测试相关资料\\如何测试\\本机测试环境\\.local\\work\\layers-ui-20261009\\isolation-pytest\\test_refresh_rate_config_write0\\data\\.config.json.30b22bb7a1fe4136ba5d2ae99b94f117.tmp' -> '<仓库根目录>\\测试相关资料\\如何测试\\本机测试环境\\.local\\work\\layers-ui-20261009\\isolation-pytest\\test_refresh_rate_config_write0\\data\\config.json'
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\persistence.py:41: PermissionError
============================== warnings summary ===============================
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:87: DeprecationWarning: 'typing.no_type_check_decorator' is deprecated and slated for removal in Python 3.15
@no_type_check_decorator
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:293: 10 warnings
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\dbus_next\service.py:293: DeprecationWarning: 'typing.no_type_check_decorator' is deprecated and slated for removal in Python 3.15
@no_type_check_decorator
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\fastapi\routing.py:234: 83 warnings
tests/test_animations.py: 913 warnings
tests/test_api.py: 2075 warnings
tests/test_fonts.py: 249 warnings
tests/test_frp.py: 332 warnings
tests/test_library_order.py: 332 warnings
tests/test_media_conversion.py: 830 warnings
tests/test_mobile_control.py: 1162 warnings
tests/test_ota.py: 249 warnings
tests/test_performance_mode.py: 83 warnings
tests/test_scene_layers.py: 166 warnings
tests/test_templates.py: 664 warnings
tests/test_ui_copy_editor.py: 599 warnings
tests/test_wifi.py: 249 warnings
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\fastapi\routing.py:234: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead
is_coroutine = asyncio.iscoroutinefunction(dependant.call)
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\main.py:2049: 1 warning
tests/test_animations.py: 11 warnings
tests/test_api.py: 25 warnings
tests/test_fonts.py: 3 warnings
tests/test_frp.py: 4 warnings
tests/test_library_order.py: 4 warnings
tests/test_media_conversion.py: 10 warnings
tests/test_mobile_control.py: 14 warnings
tests/test_ota.py: 3 warnings
tests/test_performance_mode.py: 1 warning
tests/test_scene_layers.py: 2 warnings
tests/test_templates.py: 8 warnings
tests/test_ui_copy_editor.py: 7 warnings
tests/test_wifi.py: 3 warnings
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\main.py:2049: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
@app.on_event("startup")
测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\fastapi\applications.py:4495: 2 warnings
tests/test_animations.py: 22 warnings
tests/test_api.py: 50 warnings
tests/test_fonts.py: 6 warnings
tests/test_frp.py: 8 warnings
tests/test_library_order.py: 8 warnings
tests/test_media_conversion.py: 20 warnings
tests/test_mobile_control.py: 28 warnings
tests/test_ota.py: 6 warnings
tests/test_performance_mode.py: 2 warnings
tests/test_scene_layers.py: 4 warnings
tests/test_templates.py: 16 warnings
tests/test_ui_copy_editor.py: 14 warnings
tests/test_wifi.py: 6 warnings
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.venv\Lib\site-packages\fastapi\applications.py:4495: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
return self.router.on_event(event_type)
测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\main.py:2079: 1 warning
tests/test_animations.py: 11 warnings
tests/test_api.py: 25 warnings
tests/test_fonts.py: 3 warnings
tests/test_frp.py: 4 warnings
tests/test_library_order.py: 4 warnings
tests/test_media_conversion.py: 10 warnings
tests/test_mobile_control.py: 14 warnings
tests/test_ota.py: 3 warnings
tests/test_performance_mode.py: 1 warning
tests/test_scene_layers.py: 2 warnings
tests/test_templates.py: 8 warnings
tests/test_ui_copy_editor.py: 7 warnings
tests/test_wifi.py: 3 warnings
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\app\main.py:2079: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
@app.on_event("shutdown")
tests/test_media_conversion.py::test_free_crop_can_leave_only_one_source_pixel_visible_at_each_corner
tests/test_media_conversion.py::test_free_crop_can_leave_only_one_source_pixel_visible_at_each_corner
tests/test_media_conversion.py::test_free_crop_can_leave_only_one_source_pixel_visible_at_each_corner
tests/test_media_conversion.py::test_free_crop_can_leave_only_one_source_pixel_visible_at_each_corner
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_media_conversion.py:134: DeprecationWarning: Image.Image.getdata is deprecated and will be removed in Pillow 14 (2027-10-15). Use get_flattened_data instead.
assert sum(pixel[0] > 240 for pixel in output.getdata()) == 1
tests/test_templates.py::test_template_crud_copy_persistence_and_thumbnail_cleanup
<仓库根目录>\测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_templates.py:165: DeprecationWarning: Image.Image.getdata is deprecated and will be removed in Pillow 14 (2027-10-15). Use get_flattened_data instead.
assert len(set(image.getdata())) > 1
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ===========================
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_repository_hygiene.py:17: repository hygiene tests require a complete Git workspace
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_kernel_artifact_dependency.py:103: source-only update payload intentionally omits image build dependencies
SKIPPED [5] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_media_formats.py:19: FFmpeg is not installed
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_media_formats.py:43: FFmpeg is not installed
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_media_formats.py:64: libheif examples are not installed
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_migrate_state_root.py:139: directory symlinks are unavailable on this host
SKIPPED [1] 测试相关资料\如何测试\本机测试环境\.local\work\layers-ui-20261009\独立 工作区\核桃派软件源代码\tests\test_ota_isolation_probe.py:10: only executed by the isolated legacy-worker compatibility test
1 failed, 503 passed, 11 skipped, 8390 warnings in 86.07s (0:01:26)