feat: 优化日报总结与延续性跟踪
This commit is contained in:
@ -10,8 +10,8 @@ class FakeClient:
|
||||
if name == "chatters.PullChattersByIdsRequest":
|
||||
assert data["notSubscribeChatters"] is True
|
||||
people = {
|
||||
"u1": {"id": "u1", "name": "张三"},
|
||||
"u3": {"id": "u3", "name": "王五"},
|
||||
"u1": {"id": "u1", "name": "张三", "type": 1},
|
||||
"u3": {"id": "u3", "name": "王五", "type": 2},
|
||||
}
|
||||
return {
|
||||
"chatters": {
|
||||
@ -41,8 +41,10 @@ def test_fetch_contacts_scopes_members_to_relevant_chats():
|
||||
SimpleNamespace(chat_id="private-b", chat_type=1, sender_id="u3"),
|
||||
]
|
||||
|
||||
contacts = fetch_contacts(client, rows)
|
||||
sender_types = {}
|
||||
contacts = fetch_contacts(client, rows, sender_types=sender_types)
|
||||
|
||||
assert sender_types == {"u1": 1, "u3": 2}
|
||||
assert contacts == {
|
||||
"group-a": {"u1": "张三", "u2": "李四"},
|
||||
"private-b": {"u3": "王五"},
|
||||
|
||||
Reference in New Issue
Block a user