feat: enhance email templates for verification, password reset, and PIN setup
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m44s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m44s
This commit is contained in:
@@ -252,11 +252,11 @@ class TestDigestEmailHtml:
|
|||||||
send_digest_email(SCHED_EMAIL, self._build_items(), 'unsub_tok')
|
send_digest_email(SCHED_EMAIL, self._build_items(), 'unsub_tok')
|
||||||
msg = mock_mail.return_value.send.call_args[0][0]
|
msg = mock_mail.return_value.send.call_args[0][0]
|
||||||
# Find the Approve link and verify green color is adjacent
|
# Find the Approve link and verify green color is adjacent
|
||||||
assert '#22863a' in msg.html # green used for Approve
|
assert '#22c55e' in msg.html # green used for Approve
|
||||||
|
|
||||||
def test_deny_link_styled_red(self, app_ctx):
|
def test_deny_link_styled_red(self, app_ctx):
|
||||||
"""Deny links use red color styling."""
|
"""Deny links use red color styling."""
|
||||||
with patch('utils.email_sender.Mail') as mock_mail:
|
with patch('utils.email_sender.Mail') as mock_mail:
|
||||||
send_digest_email(SCHED_EMAIL, self._build_items(), 'unsub_tok')
|
send_digest_email(SCHED_EMAIL, self._build_items(), 'unsub_tok')
|
||||||
msg = mock_mail.return_value.send.call_args[0][0]
|
msg = mock_mail.return_value.send.call_args[0][0]
|
||||||
assert '#cb2431' in msg.html # red used for Deny
|
assert '#ef4444' in msg.html # red used for Deny
|
||||||
|
|||||||
Reference in New Issue
Block a user