Example #1
0
def register_team():
    logger.info("Attempting to register new team.")
    req = ClientRequest(request)
    new_team = TeamService.create_team(req.new_team_data())
    return jsonify(new_team.json()), new_team.status_code()
 def test_new_team_data_with_full_data_works_properly(self):
     body_json = {"team_name": "test"}
     input_request = Request(body=body_json, headers=authentication_headers)
     client_request = ClientRequest(input_request)
     self.assertIsInstance(client_request.new_team_data(), NewTeamDTO)