From 21b5260bd0b57c01e468e14c70ba3729687eb0ed Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Tue, 4 Jul 2023 17:05:31 +0200
Subject: [PATCH] writing unit tests, many unit tests

---
 atdb/taskdatabase/views.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/atdb/taskdatabase/views.py b/atdb/taskdatabase/views.py
index 206b3d3a..fd2065c1 100644
--- a/atdb/taskdatabase/views.py
+++ b/atdb/taskdatabase/views.py
@@ -1156,9 +1156,6 @@ def TaskRetry(request, pk, new_status, page=0):
 
 @login_required
 def TaskDiscard(request, pk, new_status, page=0):
-    # TODO: when the cleanup service in place,
-    # make a change in this line in failures\tasks.html. Change 'discard' into 'discarded'.
-    # <a href="{% url 'task-discard-view' task.pk 'discarded' my_tasks.number %}"
 
     task = Task.objects.get(pk=pk)
 
@@ -1199,9 +1196,6 @@ def TaskDiscard(request, pk, new_status, page=0):
 
 
 def TaskDiscardSasId(request, pk, new_status, page=0):
-    # TODO: when the cleanup service in place,
-    # make a change in this line in failures\tasks.html. Change 'discard' into 'discarded'.
-    # <a href="{% url 'task-discard-view' task.pk 'discarded' my_tasks.number %}"
 
     task = Task.objects.get(pk=pk)
     sas_id = task.sas_id
@@ -1475,9 +1469,6 @@ class GetMinMaxTimeView(generics.ListAPIView):
             })
 
 
-from rest_framework.serializers import ListSerializer
-
-
 # /atdb/get_unique_values_for_key/{key}
 class GetUniqueValuesForKey(generics.ListAPIView):
     queryset = Task.objects.all()
-- 
GitLab