refactor: unify transfer chain data ports

This commit is contained in:
jxxghp
2026-08-24 04:48:06 +08:00
parent 4346fc0559
commit c8ad54a190
13 changed files with 129 additions and 95 deletions
+2 -2
View File
@@ -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,