def add_member(): logger.info(f"Attempting to add new member to team channel.") req = ClientRequest(request) new_member = ChannelService.add_member(req.channel_invitation_data()) return jsonify(new_member.json()), new_member.status_code()
def test_channel_invitation_data_with_full_data_works_properly(self): body_json = {"team_id": 0, "channel_id": 0, "user_invited_id": 0} input_request = Request(body=body_json, headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance(client_request.channel_invitation_data(), ChannelInvitationDTO)