Format additional channel connection tests

This commit is contained in:
taohe
2026-06-11 11:20:39 +08:00
parent a52deada8b
commit 89da9b70db
@@ -236,12 +236,15 @@ def test_additional_channels_attach_owner_identity(tmp_path):
attached = await channel._attach_connection_identity(inbound) attached = await channel._attach_connection_identity(inbound)
assert attached.owner_user_id == "deerflow-user-1" assert attached.owner_user_id == "deerflow-user-1"
assert attached.connection_id assert attached.connection_id
assert attached.workspace_id == { assert (
"feishu": "oc-chat-1", attached.workspace_id
"dingtalk": "cid-group-1", == {
"wechat": "wx-user-1", "feishu": "oc-chat-1",
"wecom": "bot-1", "dingtalk": "cid-group-1",
}[channel.name] "wechat": "wx-user-1",
"wecom": "bot-1",
}[channel.name]
)
await repo.close() await repo.close()