-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
import logging | ||
import os | ||
from email import message_from_string | ||
from unittest.mock import patch | ||
|
||
import odoo.tools as tools | ||
from odoo.exceptions import ValidationError | ||
|
@@ -213,6 +214,8 @@ def test_03_from_outgoing_server_another(self): | |
), | ||
) | ||
|
||
@patch.dict(tools.config.options, {"smtp_from": "[email protected]"}) | ||
@patch.dict(tools.config.options, {"smtp_domain_whitelist": "example.com"}) | ||
def test_04_from_outgoing_server_none_use_config(self): | ||
self._init_mail_server_domain_whilelist_based() | ||
domain = "example.com" | ||
|
@@ -241,6 +244,8 @@ def test_04_from_outgoing_server_none_use_config(self): | |
used_mail_server, f"using this mail server {used_mail_server.name}" | ||
) | ||
|
||
@patch.dict(tools.config.options, {"smtp_from": "[email protected]"}) | ||
@patch.dict(tools.config.options, {"smtp_domain_whitelist": "example.com"}) | ||
def test_05_from_outgoing_server_none_same_domain(self): | ||
self._init_mail_server_domain_whilelist_based() | ||
|
||
|