def add_forbidden_word(): logger.info(f"Attempting to add a forbidden word to team.") req = ClientRequest(request) response = TeamService.add_forbidden_word(req.add_forbidden_word_data()) return jsonify(response.json()), response.status_code()
def test_add_forbidden_word_data_with_full_data_works_properly(self): body_json = {"team_id": 0, "word": "test"} input_request = Request(body=body_json, headers=authentication_headers) client_request = ClientRequest(input_request) self.assertIsInstance(client_request.add_forbidden_word_data(), AddForbiddenWordDTO)