mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Resend: disable bad-auth integration test
Resend's API no longer returns 403 responses for bad API keys (or 401 for missing auth header). Now, it just never responds, leading to a TimeoutError. Since this seems likely to be a Resend bug, just disable the bad API key integration test for now. (Resend changed behavior sometime between 2023-12-07 and 2023-12-14, from our scheduled integration test runs.)
This commit is contained in:
@@ -86,6 +86,7 @@ class ResendBackendIntegrationTests(AnymailTestMixin, SimpleTestCase):
|
|||||||
len(message.anymail_status.message_id), 0
|
len(message.anymail_status.message_id), 0
|
||||||
) # non-empty string
|
) # non-empty string
|
||||||
|
|
||||||
|
@unittest.skip("Resend has stopped responding to bad/missing API keys (12/2023)")
|
||||||
@override_settings(ANYMAIL_RESEND_API_KEY="Hey, that's not an API key!")
|
@override_settings(ANYMAIL_RESEND_API_KEY="Hey, that's not an API key!")
|
||||||
def test_invalid_api_key(self):
|
def test_invalid_api_key(self):
|
||||||
with self.assertRaisesMessage(AnymailAPIError, "API key is invalid"):
|
with self.assertRaisesMessage(AnymailAPIError, "API key is invalid"):
|
||||||
|
|||||||
Reference in New Issue
Block a user