Added tests for the dashboard events filter

This commit is contained in:
Elijah 2024-02-22 18:10:49 +01:00
parent 166bd46654
commit 488f60e280

View file

@ -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])