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:
medmunds
2022-07-28 14:29:29 -04:00
parent 748ac9fea7
commit 6b3775a8e9

View File

@@ -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))