From f990c76fac161acc9dbb8ac141fb151ca433ddc4 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 29 Aug 2026 21:47:51 +0800 Subject: [PATCH] test(qbittorrent): model base package boundary --- tests/test_qbittorrent_compat.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_qbittorrent_compat.py b/tests/test_qbittorrent_compat.py index 0f486bb2e..169fbaaa7 100644 --- a/tests/test_qbittorrent_compat.py +++ b/tests/test_qbittorrent_compat.py @@ -210,7 +210,10 @@ def _load_qbittorrent_modules(): modules_module._ModuleBase = _ModuleBase modules_module._DownloaderBase = _DownloaderBase base_module = types.ModuleType("app.modules._base") - base_module._DownloaderModuleBase = _DownloaderModuleBase + base_module.__path__ = [] + downloader_base_module = types.ModuleType("app.modules._base.downloader") + downloader_base_module._DownloaderModuleBase = _DownloaderModuleBase + base_module.downloader = downloader_base_module modules_module._base = base_module torrentool_torrent_module.Torrent = _Torrent qbittorrentapi_module.TorrentDictionary = dict @@ -265,6 +268,7 @@ def _load_qbittorrent_modules(): "app.runtime.settings": runtime_settings_module, "app.modules": modules_module, "app.modules._base": base_module, + "app.modules._base.downloader": downloader_base_module, "app.modules.qbittorrent": qbittorrent_package_module, "app.schemas": schemas_module, "app.schemas.dashboard": schema_dashboard_module,