Tuesday, May 26, 2020
1 change · master
Code cleanup and technical improvements
This update reorganizes and expands the automated tests for marketing automation, making them easier to maintain and more reliable. It adds stronger coverage for email and SMS marketing flows, helping reduce the risk of regressions in future releases.
Original PR description
PURPOSE Improve marketing automation tests: improve their reading, add more tests and notably SMS tests. SPECIFICATIONS Reorganize module before working on tests: move models in their right place, split tests in main files (flow and internal details). Add dependency on marketing_automation_sms to write SMS related tests as well as on test_mail_full to benefits from all tools available in those test modules. Better use existing mail-related asserts and use them in marketing automation asserts to check sub modules did their job without having to manually check their result in unit tests. Rewrite models and tests to be more understandable, test more in-depth marketing trace values. LINKS Task ID 2247037 Community PR odoo/odoo#50384 Enterprise PR odoo/enterprise#10266 Upgrade PR odoo/upgrade#1122