summaryrefslogtreecommitdiff
path: root/addons/test_mass_mailing/tests/__init__.py
AgeCommit message (Collapse)Author
2021-04-27[IMP] test_mass_mailing: improve test data management and test users, merge ↵Thibault Delavallée
mailing tests In this commit we try to simplify tests organization by * merging mailing_internals and mass_mailing tests, as they globally handle mailing-related tests (blacklist, opt-out, gateway update through replies and clicks); * move wizard (mailing.test) tests in their own file as they target a specific model; * add some loggers to reduce noise; * add some users wrappers to test using real users; Backport of odoo/odoo@230b8258a551010080dd582923afe5a2f91d644b done in master (14.4) LINKS Task ID-2117639 COM PR odoo/odoo#40931
2020-05-18[FIX] mass_mailing: correctly consider replies for tracesThibault Delavallée
Consider an email going through the mail gateway. Its headers References and In-Reply-To are used in mail gateway to find if it is an answer to an existing discussion thread. Notably in mass mailing it is used to set mailing traces (called statistics before 13.0) as opened and replied. However currently only the References header is used. In this commit we now use References or In-Reply-To like what is done in mail gateway. == 13.2 FORWARD PORT SPECIFIC == Code in tests has been updated to use new mockups tools and variables available in test_mail LINKS Task ID 2257717 PR #51445 Forward-port-of: #51319 Forward-port-of: #51247 X-original-commit: 9921e38692e7dc4547afc34acc395da340eca410
2020-04-24[IMP] link_tracker, (test_)mass_mailing: improve test tools and clean ↵Thibault Delavallée
existing tests URPOSE Prepare code cleaning and optimization in mail, mass_mailing and SMS by cleaning models for readability and code complexity and footprint reduction. SPECIFICATIONS Add tool methods and asserts for link tracker tests. Add tool methods and assets for mass mailing tests, notably about mailing traces and their link with emails. Merge existing and duplicated tests and rewrite them a bit. Rename and improve test_mass_mailing models. LINKS Prepares task ID 2238597 (notification and trace models cleaning) Task ID 1906925 (mass mailing tests cleaning) PR #50169 Related: odoo/enterprise#10180 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-01-14[REF] link_tracker, mass_mailing: simplify add_click method and add testsThibault Delavallée
In this commit we rewrite a bit add_click in order to remove the inlined sudo and ease inheritance and parameter management inside the method. Access through controllers is sudo-ed as the main API method is now done with current user access rights. This commit is linked to task ID 1904277 and PR #28242.
2018-10-18[IMP] test_mass_mailing: add performance testsThibault Delavallée
Purpose is to have some basis performance counters when sending a mailing on 100 records, with and without blacklist involved. It will serves as reference when working on mass mailing performance improvements in future tasks. This commit is linked to task ID 1889703 and PR #27526.
2018-10-18[MOV] (test_)mass_mailing: move not mass-mailing models specific testsThibault Delavallée
Purpose of this commit is to move tests not completely specific to some mass mailing models to test_mass_mailing. Purpose is to allow to write more in-depth tests based on existing ones by using test models instead of some standard odoo ones. This commit is linked to task ID 1889703 and PR #27526.
2018-10-02[IMP] test_mass_mailing: add blacklist mixin testsThibault Delavallée
Purpose of this commit is to add some tests linked to the blacklist mixin itself, notably the computed fields and its search method. This commit is related to task ID 33224 (original blacklist implementation done for v12) and its PR #25966 as well as task ID 1889703 (tests and fixes) and its PR #27330. Done with collaboration of @dbeguin.
2018-10-02[IMP] test_mass_mailing: add blacklist testsThibault Delavallée
Purpose of this commit is to enforce blacklist use and base mechanisms. This commit may break on runbot as fixes will come after having introduced tests. It notably add tests for a8ce59ce364a011e9b677070503e7b1d76b32661. This commit is related to task ID 33224 (original blacklist implementation done for v12) and its PR #25966 as well as task ID 1889703 (tests and fixes) and its PR #27330. Done with collaboration of @dbeguin.
2018-10-02[ADD] test_mass_mailing: add module to hold feature and performance tests ↵Thibault Delavallée
for mass mailing Purpose of this commit is to add the skeleton of a module holding models and tests for mass mailing. It is build on top of test_mail in order to use data, models and parameters already defined in it. Moreover having a separate module allow to define test models that will not bloat production databases. It will soon hold unit tests for blacklist mechanism. Future commits will gradually move tests from mass mailing module and improve them. This commit is related to task ID 33224 (original blacklist implementation done for v12) and its PR #25966 as well as task ID 1889703 (tests and fixes) and its PR #27330. Done with collaboration of @dbeguin.