mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
refactor(chain): _mixins.py 更名 _transfer.py,统一功能域 mixin 命名
TransferChain 的 7 个功能域 mixin 集合文件按域更名 _transfer.py, 与 _recognition/_messaging/_interaction/_music 的单域命名约定对齐; 同步更新 transfer.py 导入、9 个测试文件 patch 目标与架构文档。 另含 chain 基类导入排序优化与未使用导入清理(copy/datetime 已随 dispatch 方法迁入 _messaging.py)。
This commit is contained in:
@@ -150,7 +150,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
|
||||
"app.chain.transfer.TransferHistoryOper"
|
||||
) as history_oper_cls, patch(
|
||||
# mixin 中按自身模块命名空间解析 TransferHistoryOper,需同步镜像
|
||||
"app.chain._mixins.TransferHistoryOper"
|
||||
"app.chain._transfer.TransferHistoryOper"
|
||||
) as mixins_history_oper_cls, patch(
|
||||
"app.chain.transfer.asyncio.run_coroutine_threadsafe",
|
||||
side_effect=_close_pending_coro,
|
||||
@@ -224,7 +224,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
|
||||
"app.chain.transfer.TransferHistoryOper"
|
||||
) as history_oper_cls, patch(
|
||||
# mixin 中按自身模块命名空间解析 TransferHistoryOper,需同步镜像
|
||||
"app.chain._mixins.TransferHistoryOper"
|
||||
"app.chain._transfer.TransferHistoryOper"
|
||||
) as mixins_history_oper_cls, patch(
|
||||
"app.application.agent._agent_manager.run_background_prompt",
|
||||
side_effect=fake_run_background_prompt,
|
||||
|
||||
Reference in New Issue
Block a user