def test_inbox_data_with_full_data_works_properly(self): body_json = { "team_id": 0, "chat_id": 0, "content": "test", "message_type": "TEXT" } input_request = Request(body=body_json, headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance(client_request.inbox_data(), InboxDTO)
def send_direct_message(): logger.info(f"Attempting to send message in team.") req = ClientRequest(request) response = MessageService.send_message(req.inbox_data()) return jsonify(response.json()), response.status_code()