Пример #1
0
def update_team_information(team_id):
    logger.info(f"Attempting to update team #{team_id} information.")
    req = ClientRequest(request)
    updated_team = TeamService.update_information(
        req.team_update_data(team_id))
    return jsonify(updated_team.json()), updated_team.status_code()
Пример #2
0
 def test_update_team_data_with_authentication_header_works_properly(self):
     body_json = {}
     input_request = Request(body=body_json, headers=authentication_headers)
     client_request = ClientRequest(input_request)
     self.assertIsInstance(client_request.team_update_data(mock),
                           TeamUpdateDTO)