-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change merge_headers to dict of dicts
- Loading branch information
1 parent
88f4443
commit be3a980
Showing
2 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -654,17 +654,14 @@ def test_template(self): | |
"[email protected]": {"name": "Not a recipient for this message"}, | ||
}, | ||
merge_headers={ | ||
"[email protected]": [ | ||
{"Name": "List-Unsubscribe", "Value": "<https://example.com/a/>"}, | ||
{"List-Unsubscribe-Post": "List-Unsubscribe=One-Click"}, | ||
], | ||
"[email protected]": [ | ||
{ | ||
"Name": "List-Unsubscribe", | ||
"Value": "<mailto:[email protected]>", | ||
}, | ||
{"List-Unsubscribe-Post": "List-Unsubscribe=One-Click"}, | ||
], | ||
"[email protected]": { | ||
"List-Unsubscribe": "<https://example.com/a/>", | ||
"List-Unsubscribe-Post": "List-Unsubscribe=One-Click", | ||
}, | ||
"[email protected]": { | ||
"List-Unsubscribe": "<mailto:[email protected]>", | ||
"List-Unsubscribe-Post": "List-Unsubscribe=One-Click", | ||
}, | ||
}, | ||
merge_global_data={"group": "Users", "site": "ExampleCo"}, | ||
# (only works with AMAZON_SES_MESSAGE_TAG_NAME when using template): | ||
|
@@ -722,7 +719,10 @@ def test_template(self): | |
bulk_entries[0]["ReplacementHeaders"], | ||
[ | ||
{"Name": "List-Unsubscribe", "Value": "<https://example.com/a/>"}, | ||
{"List-Unsubscribe-Post": "List-Unsubscribe=One-Click"}, | ||
{ | ||
"Name": "List-Unsubscribe-Post", | ||
"Value": "List-Unsubscribe=One-Click", | ||
}, | ||
], | ||
) | ||
self.assertEqual( | ||
|