Example #1
0
def add_user():
    logger.info(f"Attempting to add user to team.")
    req = ClientRequest(request)
    user_added = TeamService.add_user(req.add_user_team_data())
    return jsonify(user_added.json()), user_added.status_code()
 def test_add_user_to_team_data_with_full_data_works_properly(self):
     body_json = {"team_id": 0, "add_user_id": 0}
     input_request = Request(body=body_json, headers=authentication_headers)
     client_request = ClientRequest(input_request)
     self.assertIsInstance(client_request.add_user_team_data(),
                           AddUserTeamDTO)