def join_channel(): logger.info(f"Attempting to join team channel.") req = ClientRequest(request) new_member = ChannelService.join_channel(req.channel_registration_data()) return jsonify(new_member.json()), new_member.status_code()
def test_channel_registration_data_with_full_data_works_properly(self): body_json = {"team_id": 0, "channel_id": 0} input_request = Request(body=body_json, headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance(client_request.channel_registration_data(), ChannelRegistrationDTO)