def team_user_profile(team_id, user_id): logger.info( f"Attempting to get user {user_id} profile, from team #{team_id}.") req = ClientRequest(request) users = TeamService.team_user_profile( req.team_user_profile_data(team_id, user_id)) return jsonify(users.json()), users.status_code()
def test_search_user_by_id_with_authentication_header_works_properly(self): input_request = Request(headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance( client_request.team_user_profile_data(mock, mock), SearchUserByIdDTO)