예제 #1
0
def delete_user_history(request):
    """
    Request to delete the users history.

    :param request: request of the web server
    :return: json-dict()
    """
    LOG.debug("Delete user history")
    db_user = request.validated['user']
    return history_handler.delete_in_database(db_user)
예제 #2
0
 def test_delete_history_in_database(self):
     self.assertTrue(history.delete_in_database(self.user_tobi))