mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: unify subscribe chain data ports
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user