Commit ae9dbd3f authored by Chris Lamb's avatar Chris Lamb
Browse files

Smoke test the "only admins" filter. (Re. #48)

parent 27d6276a
from django.urls import reverse
from freenodejobs.utils.test import TestCase
......@@ -5,6 +6,13 @@ class SmokeTest(TestCase):
def test_view(self):
self.assertGET(200, 'admin:users:view', login=self.admin)
def test_view_admins(self):
self.assertGET(
200,
'{}?only_admins=on'.format(reverse('admin:users:view')),
login=self.admin,
)
def test_edit_GET(self):
self.assertGET(200, 'admin:users:edit', self.user.pk, login=self.admin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment