Tests: fix SparkPost integration test

SparkPost has switched http status for bad API key.
This commit is contained in:
medmunds
2022-07-28 11:56:19 -04:00
parent e3cd4df1fc
commit 748ac9fea7

View File

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