Added paddle
This commit is contained in:
@@ -35,7 +35,7 @@ class EmailTests(TestCase):
|
||||
)
|
||||
self.document = Document.objects.create(organization=self.organization)
|
||||
|
||||
@patch("backend.accounts.utils.send_mail")
|
||||
@patch('backend.accounts.utils.EmailMultiAlternatives')
|
||||
def test_send_confirmation_email(self, mock_send_mail):
|
||||
confirmation = EmailConfirmation.objects.create(email=self.email, uuid=uuid.uuid4(), created_at=now())
|
||||
send_confirmation_email(self.email)
|
||||
@@ -44,7 +44,7 @@ class EmailTests(TestCase):
|
||||
self.assertIsNotNone(confirmation.uuid)
|
||||
self.assertEqual(mock_send_mail.call_count, 1)
|
||||
|
||||
@patch("backend.accounts.utils.send_mail")
|
||||
@patch('backend.accounts.utils.EmailMultiAlternatives')
|
||||
def test_send_payment_email(self, mock_send_mail):
|
||||
send_payment_email(self.email)
|
||||
self.assertEqual(mock_send_mail.call_count, 1)
|
||||
|
||||
Reference in New Issue
Block a user