From f2bce847bb209c9869d1732ac6b0b36acc12adff Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 28 Sep 2026 07:06:36 +0800 Subject: [PATCH] test: register Plex movie type without Ruff import warning --- tests/test_plex_sync_timeout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_plex_sync_timeout.py b/tests/test_plex_sync_timeout.py index 185afda62..5fcd110e0 100644 --- a/tests/test_plex_sync_timeout.py +++ b/tests/test_plex_sync_timeout.py @@ -4,7 +4,9 @@ from xml.etree.ElementTree import fromstring import pytest from plexapi.library import MovieSection -from plexapi.video import Movie # pylint: disable=unused-import + +# 注册真实 Plex 电影类型,供列表 XML 解析测试使用。 +from plexapi.video import Movie # noqa: F401 # pylint: disable=unused-import from app.modules.plex import plex as plex_module from app.modules.plex.plex import Plex