mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Clean up leftover references to "Djrill"
This commit is contained in:
@@ -14,7 +14,7 @@ UNSET = object()
|
|||||||
|
|
||||||
|
|
||||||
class RequestsBackendMockAPITestCase(SimpleTestCase, AnymailTestMixin):
|
class RequestsBackendMockAPITestCase(SimpleTestCase, AnymailTestMixin):
|
||||||
"""TestCase that uses Djrill EmailBackend with a mocked Mandrill API"""
|
"""TestCase that mocks API calls through requests"""
|
||||||
|
|
||||||
DEFAULT_RAW_RESPONSE = b"""{"subclass": "should override"}"""
|
DEFAULT_RAW_RESPONSE = b"""{"subclass": "should override"}"""
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ class MandrillBackendIntegrationTests(SimpleTestCase, AnymailTestMixin):
|
|||||||
if self.message.anymail_status.status == {'queued'}:
|
if self.message.anymail_status.status == {'queued'}:
|
||||||
self.skipTest("Mandrill queued the send -- can't complete this test")
|
self.skipTest("Mandrill queued the send -- can't complete this test")
|
||||||
else:
|
else:
|
||||||
self.fail("Djrill did not raise AnymailRecipientsRefused for invalid recipient")
|
self.fail("Anymail did not raise AnymailRecipientsRefused for invalid recipient")
|
||||||
|
|
||||||
def test_rejected_to(self):
|
def test_rejected_to(self):
|
||||||
# Example of detecting when a recipient is on Mandrill's rejection blacklist
|
# Example of detecting when a recipient is on Mandrill's rejection blacklist
|
||||||
@@ -125,7 +125,7 @@ class MandrillBackendIntegrationTests(SimpleTestCase, AnymailTestMixin):
|
|||||||
if self.message.anymail_status.status == {'queued'}:
|
if self.message.anymail_status.status == {'queued'}:
|
||||||
self.skipTest("Mandrill queued the send -- can't complete this test")
|
self.skipTest("Mandrill queued the send -- can't complete this test")
|
||||||
else:
|
else:
|
||||||
self.fail("Djrill did not raise AnymailRecipientsRefused for blacklist recipient")
|
self.fail("Anymail did not raise AnymailRecipientsRefused for blacklist recipient")
|
||||||
|
|
||||||
@override_settings(MANDRILL_API_KEY="Hey, that's not an API key!")
|
@override_settings(MANDRILL_API_KEY="Hey, that's not an API key!")
|
||||||
def test_invalid_api_key(self):
|
def test_invalid_api_key(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user