Esempio n. 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)
Esempio n. 2
0
 def test_delete_history_in_database(self):
     self.assertTrue(history.delete_in_database(self.user_tobi))