@@ -71,7 +71,7 @@ def test_active_groups(self):
7171 self .assertContains (r , group .name )
7272 self .assertContains (r , group .ad_role ().person .plain_name ())
7373
74- for t in ('rg' ,'area' ,'ag' ,'dir' ,'review' ,'team' ,'program' ):
74+ for t in ('rg' ,'area' ,'ag' , 'rag' , 'dir' ,'review' ,'team' ,'program' ):
7575 g = GroupFactory .create (type_id = t ,state_id = 'active' )
7676 if t in ['dir' ,'review' ]:
7777 g .parent = GroupFactory .create (type_id = 'area' ,state_id = 'active' )
@@ -87,7 +87,7 @@ def test_active_groups(self):
8787 self .assertContains (r , "Directorate" )
8888 self .assertContains (r , "AG" )
8989
90- for slug in GroupTypeName .objects .exclude (slug__in = ['wg' ,'rg' ,'ag' ,'area' ,'dir' ,'review' ,'team' ,'program' ,'adhoc' ,'ise' ]).values_list ('slug' ,flat = True ):
90+ for slug in GroupTypeName .objects .exclude (slug__in = ['wg' ,'rg' ,'ag' ,'rag' , ' area' ,'dir' ,'review' ,'team' ,'program' ,'adhoc' ,'ise' ]).values_list ('slug' ,flat = True ):
9191 with self .assertRaises (NoReverseMatch ):
9292 url = urlreverse ('ietf.group.views.active_groups' , kwargs = dict (group_type = slug ))
9393
@@ -265,6 +265,7 @@ def test_group_about(self):
265265 'wg' : ['secretary' ,'ad' ],
266266 'rg' : ['secretary' ,'irtf-chair' ],
267267 'ag' : ['secretary' , 'ad' ],
268+ 'rag' : ['secretary' , 'irtf-chair' ],
268269 'team' : ['secretary' ,], # The code currently doesn't let ads edit teams or directorates. Maybe it should.
269270 'dir' : ['secretary' ,],
270271 'review' : ['secretary' ,],
@@ -279,7 +280,7 @@ def setup_role(group, role_id):
279280
280281 test_groups = []
281282
282- for t in ['wg' ,'rg' ,'ag' ,'team' ]:
283+ for t in ['wg' ,'rg' ,'ag' ,'rag' , ' team' ]:
283284 g = GroupFactory (type_id = t )
284285 setup_role (g ,'chair' )
285286 test_groups .append (g )
@@ -1472,7 +1473,7 @@ def ensure_cant_edit(group,user):
14721473 self .assertEqual (response .status_code , 404 )
14731474 self .client .logout ()
14741475
1475- for type_id in GroupTypeName .objects .exclude (slug__in = ('wg' ,'rg' ,'ag' ,'team' )).values_list ('slug' ,flat = True ):
1476+ for type_id in GroupTypeName .objects .exclude (slug__in = ('wg' ,'rg' ,'ag' ,'rag' , ' team' )).values_list ('slug' ,flat = True ):
14761477 group = GroupFactory .create (type_id = type_id )
14771478 for user in (None ,User .objects .get (username = 'secretary' )):
14781479 ensure_updates_dont_show (group ,user )
0 commit comments