def test_delete_forbidden_word_data_with_authentication_header_works_properly(
         self):
     input_request = Request(headers=authentication_headers)
     client_request = ClientRequest(input_request)
     self.assertIsInstance(
         client_request.delete_forbidden_word_data(mock, mock),
         DeleteForbiddenWordDTO)
Exemple #2
0
def delete_forbidden_word(team_id, word_id):
    logger.info(
        f"Attempting to delete forbidden word #{word_id} from team #{team_id}."
    )
    req = ClientRequest(request)
    response = TeamService.delete_forbidden_word(
        req.delete_forbidden_word_data(team_id, word_id))
    return jsonify(response.json()), response.status_code()