addUsersToGroup can no longer return the message id

Updated documentation and tests
This commit is contained in:
Mads Marquart
2018-06-06 16:39:23 +02:00
parent 7bf6a9fadc
commit 6116bc9ca4
2 changed files with 2 additions and 7 deletions

View File

@@ -1038,7 +1038,6 @@ class Client(object):
:param user_ids: One or more user IDs to add
:param thread_id: Group ID to add people to. See :ref:`intro_threads`
:type user_ids: list
:return: :ref:`Message ID <intro_message_ids>` of the executed action
:raises: FBchatException if request failed
"""
thread_id, thread_type = self._getThread(thread_id, None)

View File

@@ -25,13 +25,9 @@ def test_remove_from_and_add_to_group(client1, client2, group, catch_event):
)
finally:
with catch_event("onPeopleAdded") as x:
mid = client1.addUsersToGroup(client2.uid, group["id"])
client1.addUsersToGroup(client2.uid, group["id"])
assert subset(
x.res,
mid=mid,
added_ids=[client2.uid],
author_id=client1.uid,
thread_id=group["id"],
x.res, added_ids=[client2.uid], author_id=client1.uid, thread_id=group["id"]
)