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