Rename exceptions

* Change Djrill -> Mandrill in exception names
* Don't re-export at package level
  (import from anymail.exceptions, not from anymail)
This commit is contained in:
medmunds
2016-02-27 11:57:53 -08:00
parent 921dd5d0d6
commit 1c7fe8a759
6 changed files with 74 additions and 71 deletions

View File

@@ -1,6 +1,6 @@
from django.core import mail
from anymail import MandrillAPIError
from anymail.exceptions import AnymailAPIError
from .mock_backend import DjrillBackendMockAPITestCase
@@ -47,7 +47,7 @@ class DjrillMandrillSendTemplateTests(DjrillBackendMockAPITestCase):
'from@example.com', ['to@example.com'])
msg.template_name = "PERSONALIZED_SPECIALS"
msg.use_template_from = True
with self.assertRaises(MandrillAPIError):
with self.assertRaises(AnymailAPIError):
msg.send()
def test_send_template_without_subject_field(self):