def invite(self): if self.course.clickmeeting_room_url is not None: invite_to_clickmeeting.delay( room_url=self.course.clickmeeting_room_url, email=self.user.email, ) if self.course.zoomus_webinar_id is not None and len(self.course.zoomus_webinar_id): invite_to_zoomus.delay( webinar_id=self.course.zoomus_webinar_id, user_id=self.user.id, )
def invite_to_clickmeeting(self): if self.course.clickmeeting_room_url is not None: invite_to_clickmeeting.delay( room_url=self.course.clickmeeting_room_url, email=self.user.email, )
def test(invite): invite_to_clickmeeting.delay('https://a.test', '*****@*****.**') invite.assert_called_once_with('https://a.test', '*****@*****.**')