async def test_unfollow_user(user_api, user_service): user_api.v1_user_uid_unfollow_post = AsyncMock() await user_service.unfollow_user([1234, 2345], 12345) user_api.v1_user_uid_unfollow_post.assert_called_with( uid=12345, uid_list=FollowersList(followers=UserIdList(value=[1234, 2345])), session_token="session_token")
async def unfollow_user(self, follower_ids: [int], user_id: int) -> None: """Make a list of users to stop following a specific user. See: `Unfollow User <https://developers.symphony.com/restapi/v20.9/reference#unfollow-user>`_ :param follower_ids: List of the ids of the followers. :param user_id: The id of the user to be unfollowed. """ params = { 'uid': user_id, 'uid_list': FollowersList(followers=UserIdList(value=follower_ids)), 'session_token': await self._auth_session.session_token } await self._user_api.v1_user_uid_unfollow_post(**params)