test for new From field

This commit is contained in:
mike cullerton 2021-10-01 14:02:56 -04:00
parent 0ef33aae00
commit 7357fe7507
1 changed files with 3 additions and 0 deletions

View File

@ -29,5 +29,8 @@ class TestEmailScript(BaseTest):
self.assertIn(task_data['ApprvlApprvr1'], outbox[0].body) self.assertIn(task_data['ApprvlApprvr1'], outbox[0].body)
self.assertIn(task_data['ApprvlApprvr1'], outbox[0].html) self.assertIn(task_data['ApprvlApprvr1'], outbox[0].html)
# Correct From field
self.assertEqual('uvacrconnect@virginia.edu', outbox[0].sender)
db_emails = EmailModel.query.count() db_emails = EmailModel.query.count()
self.assertEqual(db_emails, 1) self.assertEqual(db_emails, 1)