Exemplo n.º 1
0
 def test_admin_email_ineligible_room(self):
     subj = f'Course Capture Admin: {self.real_section.code} has moved to {self.fake_meeting.room.name}'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert self.email_page.is_message_delivered(email)
Exemplo n.º 2
0
 def test_instructor_email_alt_eligible_room(self):
     subj = f'Your course {self.real_section.code} is no longer eligible for Course Capture'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert len(self.email_page.message_rows(email)) == 1
Exemplo n.º 3
0
 def test_receive_invite_email(self):
     subj = f'Invitation {self.section.term.name} {self.section.code} (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert not self.email_page.is_message_delivered(expected_message)
 def test_email_test_button(self):
     self.templates_page.click_send_test_email(self.template)
     subj = f'{self.template.subject} (To: {app.config["EMAIL_DIABLO_ADMIN"]})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert self.email_page.is_message_delivered(expected_message)
Exemplo n.º 5
0
 def test_course_auto_invites_not_delivered(self):
     subject = f'Invitation {self.section_2.term.name} {self.section_2.code} (To: {self.section_2.instructors[0].email})'
     email = Email(msg_type=None, sender=None, subject=subject)
     assert self.email_page.is_message_present(email) is False
 def test_null_dates_admin_email_received(self):
     subj = f'Course Capture Admin: {self.real_section.code} schedule change'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert self.email_page.is_message_delivered(email)
Exemplo n.º 7
0
 def test_no_dupe_awaiting_approval_inst_1(self):
     subj = f'Course Capture: {self.section.listings[0].code} waiting on approval (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert not self.email_page.is_message_present(expected_message)
Exemplo n.º 8
0
 def test_admin_email_canceled_ineligible(self):
     subj = f'Course Capture Admin: {self.section.code} has moved to CANCELED'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert self.email_page.is_message_delivered(email)
 def test_admin_emails_with_instr_change(self):
     subj = f'Course Capture Admin: {self.real_section.code} Instructor changes'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert self.email_page.is_message_delivered(email)
Exemplo n.º 10
0
 def test_no_dupe_invite_inst_1(self):
     subj = f'Invitation {self.section.term.name} {self.section.listings[0].code} (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert not self.email_page.is_message_present(expected_message)
Exemplo n.º 11
0
 def test_receive_notify_of_changes_email_inst_1(self):
     subj = f'Changes to your Course Capture settings for {self.section.code} (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     self.email_page.is_message_delivered(expected_message)
Exemplo n.º 12
0
 def test_receive_awaiting_approval_email_inst_1(self):
     subj = f'Course Capture: {self.section.code} waiting on approval (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert self.email_page.is_message_delivered(expected_message)
Exemplo n.º 13
0
 def test_inst_auto_invite_delivered(self):
     subject = f'Invitation {self.section_1.term.name} {self.section_1.code} (To: {self.section_1.instructors[0].email})'
     email = Email(msg_type=None, sender=None, subject=subject)
     assert self.email_page.is_message_delivered(email)
Exemplo n.º 14
0
 def test_receive_invite_email(self):
     self.recording_schedule.approval_status = RecordingApprovalStatus.INVITED
     subj = f'Invitation {self.section.term.name} {self.section.code} (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert self.email_page.is_message_delivered(expected_message)
Exemplo n.º 15
0
 def test_no_dupe_notify_of_changes_inst_1(self):
     subj = f'Changes to your Course Capture settings for {self.section.listings[0].code} (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert not self.email_page.is_message_present(expected_message)
Exemplo n.º 16
0
 def test_receive_schedule_conf_email(self):
     subj = f'Your course, {self.section.code}, has been scheduled for Course Capture'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert self.email_page.is_message_delivered(expected_message)
Exemplo n.º 17
0
 def test_no_dupe_schedule_conf_inst_1(self):
     subj = f'Your course, {self.section.listings[0].code}, has been scheduled for Course Capture (To: {self.section.instructors[0].email})'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert not self.email_page.is_message_present(expected_message)
Exemplo n.º 18
0
 def test_instructor_email_canceled_ineligible(self):
     subj = f'Your course {self.section.code} is no longer eligible for Course Capture'
     email = Email(msg_type=None, subject=subj, sender=None)
     assert self.email_page.is_message_delivered(email)
Exemplo n.º 19
0
 def test_weird_email(self):
     subj = f'Admin alert: {self.section.code} is weird'
     expected_message = Email(msg_type=None, sender=None, subject=subj)
     assert self.email_page.is_message_delivered(expected_message)