-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into normalize_package
- Loading branch information
Showing
2 changed files
with
9 additions
and
5 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ def setUp(self) -> None: | |
"app": { | ||
"smtp": { | ||
"email": "[email protected]", | ||
"to": "[email protected]", | ||
"host": "smtp.test.com", | ||
"port": "587", | ||
"password": "password", | ||
|
@@ -44,8 +45,11 @@ def test_dry_run_send(self): | |
|
||
def test_build_message(self): | ||
"""Test for building a valid email.""" | ||
msg = notify.build_message(self.config["app"]["smtp"]["email"]) | ||
self.assertEqual(msg.to, self.config["app"]["smtp"]["email"]) | ||
msg = notify.build_message( | ||
email=self.config["app"]["smtp"]["email"], | ||
to_email=self.config["app"]["smtp"]["to"], | ||
) | ||
self.assertEqual(msg.to, self.config["app"]["smtp"]["to"]) | ||
self.assertIn(self.config["app"]["smtp"]["email"], msg.sender) | ||
self.assertIn("icloud-docker: Two step authentication required", msg.subject) | ||
self.assertIn( | ||
|