This commit is contained in:
zandercymatics 2024-05-31 15:23:00 -06:00
parent 55eff9fcaa
commit fd708e0b2d
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -20,7 +20,7 @@ class TestEmails(TestCase):
@boto3_mocking.patching
@override_flag("disable_email_sending", active=True)
def test_disable_email_flag(self):
"""Test if the 'disable_email_sending' stops emails from being sent """
"""Test if the 'disable_email_sending' stops emails from being sent"""
with boto3_mocking.clients.handler_for("sesv2", self.mock_client_class):
expected_message = "Email sending is disabled due to"
with self.assertRaisesRegex(email.EmailSendingError, expected_message):
@ -31,7 +31,7 @@ class TestEmails(TestCase):
context={"domain_request": self},
bcc_address=None,
)
# Assert that an email wasn't sent
self.assertFalse(self.mock_client.send_email.called)