An additional photo test, and a test function rename.
- Legacy-Id: 11313
This commit is contained in:
parent
a9980d5cc1
commit
4cb87b5b09
|
@ -359,7 +359,7 @@ class GroupPagesTests(TestCase):
|
|||
chairs = Role.objects.filter(group__type='wg', group__state='active', name_id='chair')
|
||||
self.assertEqual(len(q('div.photo-thumbnail img')), chairs.count())
|
||||
|
||||
def test_group_photos(self):
|
||||
def test_wg_photos(self):
|
||||
make_test_data()
|
||||
url = urlreverse("ietf.group.views.group_photos", kwargs={'group_type':'wg', 'acronym':'mars'})
|
||||
r = self.client.get(url)
|
||||
|
@ -368,6 +368,15 @@ class GroupPagesTests(TestCase):
|
|||
roles = Role.objects.filter(group__acronym='mars')
|
||||
self.assertEqual(len(q('div.photo-thumbnail img')), roles.count())
|
||||
|
||||
def test_group_photos(self):
|
||||
make_test_data()
|
||||
url = urlreverse("ietf.group.views.group_photos", kwargs={'acronym':'iab'})
|
||||
r = self.client.get(url)
|
||||
self.assertEqual(r.status_code, 200)
|
||||
q = PyQuery(r.content)
|
||||
roles = Role.objects.filter(group__acronym='iab')
|
||||
self.assertEqual(len(q('div.photo-thumbnail img')), roles.count())
|
||||
|
||||
class GroupEditTests(TestCase):
|
||||
def setUp(self):
|
||||
self.charter_dir = os.path.abspath("tmp-charter-dir")
|
||||
|
|
Loading…
Reference in a new issue