mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Tests: fix SparkPost integration test
SparkPost has switched http status for bad API key.
This commit is contained in:
@@ -127,6 +127,6 @@ class SparkPostBackendIntegrationTests(AnymailTestMixin, SimpleTestCase):
|
||||
with self.assertRaises(AnymailAPIError) as cm:
|
||||
self.message.send()
|
||||
err = cm.exception
|
||||
self.assertEqual(err.status_code, 403)
|
||||
self.assertEqual(err.status_code, 401)
|
||||
# Make sure the exception message includes SparkPost's response:
|
||||
self.assertIn("Forbidden", str(err))
|
||||
|
||||
Reference in New Issue
Block a user