mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
SparkPost: reduce live integration test volume
SparkPost has a very small monthly send allowance (and no API test mode), so limit the number of recipients in live integration tests to avoid running through our whole quota. This means we aren't fully testing cc and bcc handling like we're able to for other ESPs.
This commit is contained in:
@@ -62,8 +62,10 @@ class SparkPostBackendIntegrationTests(SimpleTestCase, AnymailTestMixin):
|
|||||||
body="This is the text body",
|
body="This is the text body",
|
||||||
from_email="Test From <test@test-sp.anymail.info>, also-from@test-sp.anymail.info",
|
from_email="Test From <test@test-sp.anymail.info>, also-from@test-sp.anymail.info",
|
||||||
to=["to1@test.sink.sparkpostmail.com", "Recipient 2 <to2@test.sink.sparkpostmail.com>"],
|
to=["to1@test.sink.sparkpostmail.com", "Recipient 2 <to2@test.sink.sparkpostmail.com>"],
|
||||||
cc=["cc1@test.sink.sparkpostmail.com", "Copy 2 <cc2@test.sink.sparkpostmail.com>"],
|
# Limit the live b/cc's to avoid running through our small monthly allowance:
|
||||||
bcc=["bcc1@test.sink.sparkpostmail.com", "Blind Copy 2 <bcc2@test.sink.sparkpostmail.com>"],
|
# cc=["cc1@test.sink.sparkpostmail.com", "Copy 2 <cc2@test.sink.sparkpostmail.com>"],
|
||||||
|
# bcc=["bcc1@test.sink.sparkpostmail.com", "Blind Copy 2 <bcc2@test.sink.sparkpostmail.com>"],
|
||||||
|
cc=["Copy To <cc@test.sink.sparkpostmail.com>"],
|
||||||
reply_to=["reply1@example.com", "Reply 2 <reply2@example.com>"],
|
reply_to=["reply1@example.com", "Reply 2 <reply2@example.com>"],
|
||||||
headers={"X-Anymail-Test": "value"},
|
headers={"X-Anymail-Test": "value"},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user