From c80310848179cf4bf662c04a7f27e84cb319e4d5 Mon Sep 17 00:00:00 2001 From: medmunds Date: Wed, 29 Jul 2020 14:41:35 -0700 Subject: [PATCH] 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. --- tests/test_sparkpost_integration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_sparkpost_integration.py b/tests/test_sparkpost_integration.py index 43966d4..efabad0 100644 --- a/tests/test_sparkpost_integration.py +++ b/tests/test_sparkpost_integration.py @@ -62,8 +62,10 @@ class SparkPostBackendIntegrationTests(SimpleTestCase, AnymailTestMixin): body="This is the text body", from_email="Test From , also-from@test-sp.anymail.info", to=["to1@test.sink.sparkpostmail.com", "Recipient 2 "], - cc=["cc1@test.sink.sparkpostmail.com", "Copy 2 "], - bcc=["bcc1@test.sink.sparkpostmail.com", "Blind Copy 2 "], + # Limit the live b/cc's to avoid running through our small monthly allowance: + # cc=["cc1@test.sink.sparkpostmail.com", "Copy 2 "], + # bcc=["bcc1@test.sink.sparkpostmail.com", "Blind Copy 2 "], + cc=["Copy To "], reply_to=["reply1@example.com", "Reply 2 "], headers={"X-Anymail-Test": "value"},