Skip to content

Commit 1155359

Browse files
committed
Mailtrap: remove test_send_with_recipients_refused
1 parent bc1fd1d commit 1155359

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tests/test_mailtrap_backend.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,6 @@ def test_send_with_invalid_api_token(self):
105105
with self.assertRaises(AnymailAPIError):
106106
self.message.send()
107107

108-
@unittest.skip("TODO: is this test correct/necessary?")
109-
def test_send_with_recipients_refused(self):
110-
"""Test sending an email with all recipients refused"""
111-
self.set_mock_response(
112-
status_code=400, raw=b'{"error": "All recipients refused"}'
113-
)
114-
with self.assertRaises(AnymailRecipientsRefused):
115-
self.message.send()
116-
117108
def test_send_with_serialization_error(self):
118109
"""Test sending an email with a serialization error"""
119110
self.message.extra_headers = {

0 commit comments

Comments
 (0)