From 488f60e280d6b683a63fed371557fc2770b65934 Mon Sep 17 00:00:00 2001 From: Elijah Date: Thu, 22 Feb 2024 18:10:49 +0100 Subject: [PATCH] Added tests for the dashboard events filter --- idhub/tests/test_views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/idhub/tests/test_views.py b/idhub/tests/test_views.py index 67d68c9..a6c66f7 100644 --- a/idhub/tests/test_views.py +++ b/idhub/tests/test_views.py @@ -73,8 +73,7 @@ class AdminDashboardViewTest(TestCase): # Fetch the dashboard view response = self.client.get('/admin/dashboard/') - #import pdb; pdb.set_trace() - events = response.context['events'] + events = response.context['event_list'] # Check that only admin-visible events are included self.assertIn(Event.Types.EV_USR_REGISTERED, [event.type for event in events])