refactor: unify subscribe chain data ports

This commit is contained in:
jxxghp
2026-08-24 04:43:20 +08:00
parent f93ecf65d3
commit 4346fc0559
10 changed files with 125 additions and 86 deletions
+3 -1
View File
@@ -236,8 +236,10 @@ class TestSlashCommandInteractions(unittest.TestCase):
)
]
subscribe_port = SimpleNamespace(list=lambda: fake_subscribes)
with patch(
"app.chain.subscribe.SubscribeOper.list", return_value=fake_subscribes
"app.chain.subscribe.get_chain_subscribe_port",
return_value=subscribe_port,
), patch.object(chain, "post_message") as post_message:
chain.remote_list(channel=NotificationChannel.Web, userid="u1", source="web")