mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Remove deprecated <ESP>Backend names
(Deprecated with warnings since v0.8)
This commit is contained in:
@@ -600,12 +600,3 @@ class SparkPostBackendImproperlyConfiguredTests(SimpleTestCase, AnymailTestMixin
|
||||
# Poke into implementation details to verify:
|
||||
self.assertIsNone(conn.api_key) # Anymail prop
|
||||
self.assertEqual(conn.sp.api_key, 'key_from_environment') # SparkPost prop
|
||||
|
||||
|
||||
class SparkPostBackendDeprecationTests(SparkPostBackendMockAPITestCase):
|
||||
@override_settings(EMAIL_BACKEND='anymail.backends.sparkpost.SparkPostBackend')
|
||||
def test_renamed_backend_warning(self):
|
||||
# ...sparkpost.SparkPostBackend --> ...sparkpost.EmailBackend
|
||||
with self.assertWarnsRegex(DeprecationWarning,
|
||||
r'anymail\.backends\.sparkpost\.EmailBackend'):
|
||||
self.message.send()
|
||||
|
||||
Reference in New Issue
Block a user