mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-14 05:29:43 +02:00
Linting
This commit is contained in:
parent
55eff9fcaa
commit
fd708e0b2d
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ class TestEmails(TestCase):
|
||||||
@boto3_mocking.patching
|
@boto3_mocking.patching
|
||||||
@override_flag("disable_email_sending", active=True)
|
@override_flag("disable_email_sending", active=True)
|
||||||
def test_disable_email_flag(self):
|
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):
|
with boto3_mocking.clients.handler_for("sesv2", self.mock_client_class):
|
||||||
expected_message = "Email sending is disabled due to"
|
expected_message = "Email sending is disabled due to"
|
||||||
with self.assertRaisesRegex(email.EmailSendingError, expected_message):
|
with self.assertRaisesRegex(email.EmailSendingError, expected_message):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue