addUsersToGroup
can no longer return the message id
Updated documentation and tests
This commit is contained in:
@@ -1038,7 +1038,6 @@ class Client(object):
|
|||||||
:param user_ids: One or more user IDs to add
|
:param user_ids: One or more user IDs to add
|
||||||
:param thread_id: Group ID to add people to. See :ref:`intro_threads`
|
:param thread_id: Group ID to add people to. See :ref:`intro_threads`
|
||||||
:type user_ids: list
|
:type user_ids: list
|
||||||
:return: :ref:`Message ID <intro_message_ids>` of the executed action
|
|
||||||
:raises: FBchatException if request failed
|
:raises: FBchatException if request failed
|
||||||
"""
|
"""
|
||||||
thread_id, thread_type = self._getThread(thread_id, None)
|
thread_id, thread_type = self._getThread(thread_id, None)
|
||||||
|
@@ -25,13 +25,9 @@ def test_remove_from_and_add_to_group(client1, client2, group, catch_event):
|
|||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
with catch_event("onPeopleAdded") as x:
|
with catch_event("onPeopleAdded") as x:
|
||||||
mid = client1.addUsersToGroup(client2.uid, group["id"])
|
client1.addUsersToGroup(client2.uid, group["id"])
|
||||||
assert subset(
|
assert subset(
|
||||||
x.res,
|
x.res, added_ids=[client2.uid], author_id=client1.uid, thread_id=group["id"]
|
||||||
mid=mid,
|
|
||||||
added_ids=[client2.uid],
|
|
||||||
author_id=client1.uid,
|
|
||||||
thread_id=group["id"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user