[FIX] test_mail: prepare and fixup tests for alias domains
Some tests are updated to lessen diff in future tests, especially about
aliases. Some tests are fixed as they are somehow incorrect (notably
in gateway testing) but currently passing as mail gateway is quite
permissive.
Add some tests preparing MC / alias domains configuration notably about
company / alias synchronization, which is currently only based on config
parameters.
Also update some tests by using fstrings which are generally more readable.
Finally move some tests to their right file / main testing class to keep
them ordered by main topic.
Prepares Task-36879 (Mail: Support MultiCompany Aliases)
closes odoo/odoo#136102
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/mail/tests/common.py 4 additions, 0 deletionsaddons/mail/tests/common.py
- addons/test_mail/tests/test_mail_gateway.py 100 additions, 97 deletionsaddons/test_mail/tests/test_mail_gateway.py
- addons/test_mail/tests/test_mail_multicompany.py 1 addition, 62 deletionsaddons/test_mail/tests/test_mail_multicompany.py
- addons/test_mail/tests/test_message_post.py 134 additions, 44 deletionsaddons/test_mail/tests/test_message_post.py
- addons/test_mail/tests/test_performance.py 1 addition, 1 deletionaddons/test_mail/tests/test_performance.py
Loading
Please register or sign in to comment