File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ def get_certified_participants(
417417 for participant in participants :
418418 details = get_certified_participant_details (participant .member )
419419 participant .update (details )
420+ participant .pop ("member" , None )
420421
421422 return participants
422423
Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ def test_certified_participants_with_category(self):
2424 filters = {"category" : "Utility Course" }
2525 certified_participants = get_certified_participants (filters = filters )
2626 self .assertEqual (len (certified_participants ), 1 )
27- self .assertEqual (certified_participants [0 ].member , self .student1 .email )
27+ self .assertEqual (certified_participants [0 ].full_name , self .student1 .full_name )
28+ self .assertNotIn ("member" , certified_participants [0 ])
2829
2930 filters = {"category" : "Nonexistent Category" }
3031 certified_participants_no_match = get_certified_participants (filters = filters )
You can’t perform that action at this time.
0 commit comments