From 7a9f91e22aeff392cd872ebcb65349b16c8ef176 Mon Sep 17 00:00:00 2001
From: Alissa Cheng <cheng@astron.nl>
Date: Wed, 17 Jan 2024 18:19:01 +0100
Subject: [PATCH] fix test_with_ingest_filter

---
 atdb/taskdatabase/tests/test_filters.py | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/atdb/taskdatabase/tests/test_filters.py b/atdb/taskdatabase/tests/test_filters.py
index c2a5b361..4b1f3b42 100644
--- a/atdb/taskdatabase/tests/test_filters.py
+++ b/atdb/taskdatabase/tests/test_filters.py
@@ -27,10 +27,6 @@ class FiltersTest(TestCase):
         # this simulates the 'Queue (scrubbed)' filter on the ingest page
         request.session = {'ingest_filter': 'scrubbed'}
 
-        middleware = SessionMiddleware()
-        middleware.process_request(request)
-        request.session.save()
-
         # after aggregating per sas_id, 2 objects with status 'scrubbed' remain
         tasks = get_filtered_tasks(request, None, "sas_id")
-        self.assertEqual(tasks.count(),2)
\ No newline at end of file
+        self.assertEqual(tasks.count(), 2)
-- 
GitLab