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