-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from SparkPost/ISSUE-92
Fix preview resource to properly pass sub data
- Loading branch information
Showing
3 changed files
with
19 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -49,6 +49,15 @@ def test_translate_keys_for_email_parsing(): | |
] | ||
|
||
|
||
def test_translate_keys_for_from_email(): | ||
t = Transmissions('uri', 'key') | ||
results = t._translate_keys(from_email='Testing <[email protected]>') | ||
assert results['content']['from'] == { | ||
'name': 'Testing', | ||
'email': '[email protected]' | ||
} | ||
|
||
|
||
def test_translate_keys_with_cc(): | ||
t = Transmissions('uri', 'key') | ||
results = t._translate_keys(recipients=['[email protected]'], | ||
|