Added tests for the dashboard events filter
This commit is contained in:
parent
166bd46654
commit
488f60e280
|
@ -73,8 +73,7 @@ class AdminDashboardViewTest(TestCase):
|
||||||
|
|
||||||
# Fetch the dashboard view
|
# Fetch the dashboard view
|
||||||
response = self.client.get('/admin/dashboard/')
|
response = self.client.get('/admin/dashboard/')
|
||||||
#import pdb; pdb.set_trace()
|
events = response.context['event_list']
|
||||||
events = response.context['events']
|
|
||||||
|
|
||||||
# Check that only admin-visible events are included
|
# Check that only admin-visible events are included
|
||||||
self.assertIn(Event.Types.EV_USR_REGISTERED, [event.type for event in events])
|
self.assertIn(Event.Types.EV_USR_REGISTERED, [event.type for event in events])
|
||||||
|
|
Loading…
Reference in New Issue