mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 01:11:55 +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
|
||||
@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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue