mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: unify transfer chain data ports
This commit is contained in:
@@ -137,7 +137,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
|
||||
settings, "AI_AGENT_ENABLE", True
|
||||
):
|
||||
with patch(
|
||||
"app.chain._transfer.TransferHistoryOper"
|
||||
"app.chain._transfer.get_chain_transfer_history_port"
|
||||
) as history_oper_cls, patch(
|
||||
"app.chain._transfer.build_manual_redo_prompt",
|
||||
return_value="retry transfer prompt",
|
||||
@@ -217,7 +217,7 @@ class TestTransferFailedRetryButtons(unittest.TestCase):
|
||||
settings, "AI_AGENT_ENABLE", True
|
||||
):
|
||||
with patch(
|
||||
"app.chain._transfer.TransferHistoryOper"
|
||||
"app.chain._transfer.get_chain_transfer_history_port"
|
||||
) as history_oper_cls, patch(
|
||||
"app.chain._transfer.build_manual_redo_prompt",
|
||||
side_effect=build_manual_redo_prompt,
|
||||
|
||||
Reference in New Issue
Block a user