File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33from ietf .group .models import Group
44from ietf .person .models import Person
55from ietf .utils .test_data import make_test_data
6+ import debug
67
78SECR_USER = 'secretary'
89
@@ -98,14 +99,15 @@ def test_edit_valid(self):
9899 draft = make_test_data ()
99100 group = Group .objects .filter (type = 'wg' )[0 ]
100101 area = Group .objects .filter (type = 'area' )[0 ]
102+ ad = Person .objects .get (name = 'Aread Irector' )
101103 url = reverse ('groups_edit' , kwargs = {'acronym' :group .acronym })
102104 target = reverse ('groups_view' , kwargs = {'acronym' :group .acronym })
103105 post_data = {'acronym' :group .acronym ,
104106 'name' :group .name ,
105107 'type' :'wg' ,
106108 'state' :group .state_id ,
107109 'parent' :area .id ,
108- 'ad' :3 ,
110+ 'ad' :ad . id ,
109111 'groupurl_set-TOTAL_FORMS' :'2' ,
110112 'groupurl_set-INITIAL_FORMS' :'0' ,
111113 'submit' :'Save' }
Original file line number Diff line number Diff line change @@ -272,14 +272,16 @@ def create_test_milestones(self):
272272
273273 group = Group .objects .get (acronym = "mars" )
274274
275- m1 = GroupMilestone .objects .create (group = group ,
275+ m1 = GroupMilestone .objects .create (id = 1 ,
276+ group = group ,
276277 desc = "Test 1" ,
277278 due = datetime .date .today (),
278279 resolved = "" ,
279280 state_id = "active" )
280281 m1 .docs = [draft ]
281282
282- m2 = GroupMilestone .objects .create (group = group ,
283+ m2 = GroupMilestone .objects .create (id = 2 ,
284+ group = group ,
283285 desc = "Test 2" ,
284286 due = datetime .date .today (),
285287 resolved = "" ,
You can’t perform that action at this time.
0 commit comments