We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 115adec commit 5e4f6abCopy full SHA for 5e4f6ab
1 file changed
test/test_transmissions.py
@@ -66,6 +66,19 @@ def test_translate_keys_for_from_email():
66
}
67
68
69
+def test_campaign_id():
70
+ responses.add(
71
+ responses.POST,
72
+ 'https://api.sparkpost.com/api/v1/transmissions',
73
+ status=200,
74
+ content_type='application/json',
75
+ body='{"results": "yay"}'
76
+ )
77
+ sp = SparkPost('fake-key')
78
+ results = sp.transmission.send(campaign="test")
79
+ assert results == 'yay'
80
+
81
82
def test_format_header_to():
83
t = Transmissions('uri', 'key')
84
formatted = t._format_header_to(recipient={
0 commit comments