summaryrefslogtreecommitdiff
path: root/addons/test_mass_mailing/tests
AgeCommit message (Collapse)Author
2019-03-11[FIX] {,test_}mass_mailing: set mail.mass_mailing subjectChristophe Simonis
Field is required.
2019-02-04[MERGE] forward port branch saas-12.1 up to 4524ad06a8aChristophe Simonis
2019-01-31[MERGE] forward port branch 12.0 up to cb8fefa8999Christophe Simonis
2019-01-29[FIX] test_mass_mailing: bump query countsChristophe Simonis
Now that urls are shortened by email (and not globally)[1], more queries are executed. Oversight of previous forward-port [1] See #29083
2018-11-20[IMP] mail, mass_mailing, crm : stringify _primary_emailDavid Beguin
_primary_email was an array to be able to use it directly in the depends. Typically a 'depends' with a computed value (lambda) needs an array. Otherwise, it will only take the first character of the field name string. By setting _primary_email as a string, the lambda should always get an array. But it simplifies a lot the usage of the _primary_email. also, having an array was confusing as we could think that more than one field can be considered as the primary email. This is not the goal hare. So having the _primary_email as a single string is more 'self describing'. Only one field should be the _primary_email.
2018-11-20[IMP] mail, mass_mailing, mass_mailing_crm : Use normalized email in ↵David Beguin
unsubscribe link Use the email_normalized from mail.address.mixin if available to get always a normalized email address in the unsubscribe link. That allows to simplify the search on email address in the controllers -> Check blacklist, send feedback, etc.. Task ID 1896677
2018-11-20[IMP] mail : apply mail.address.mixin on blacklistDavid Beguin
Apply the mail.address.mixin on blacklist mixin. So that every model inheriting the blacklist.mixin will also inherit the address.mixin. That simplify also the comparaison to - and the searches on - the blacklist. Task ID 1896677
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-11-09[IMP] mass_mailing : add blacklist and opt_out demo dataDavid Beguin
In order to understand more easily the impact of an opt out or a blacklisted contact on the interface, blacklist and opt-out demo data are added. Tests updated to only test mails on contacts created inside the test environement and not with demo data. Task ID 1892998 Closes PR #27674
2018-10-23[REF] test_mass_mailing: make performance test class child of TransactionCaseThibault Delavallée
It eases manipulation and lessen overhead. Performance tests should be self contained as much as possible. Commit linked to task ID 1902307.
2018-10-22[MERGE] forward port branch saas-11.4 up to 3c108977c1eChristophe Simonis
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[FIX] mass_mailing: fix tracking link creation in mass mailingThibault Delavallée
When using only mass mailing two issues arise when trying to send mass mailings containing links * a link.tracker is created for each link to shorten; however rights are given currently only in website_links for website designers and not to marketing users that use mass mailing. This commit adds the rights for link.tracker model to those people; * a link.tracker.code is created to hold the shortened versions of the links. As it is a technical model it is now done as superuser as rights on link.tracked model has already been granted and adding rights on such a technical model is not necessary; A test is added that checks what is done with links when sending mass mailings. It helped spotting the hereabove issue. This commit is linked to task ID 1889703 and PR #27526.
2018-10-18[REF] test_mass_mailing: use odoo test helper method to create test usersThibault Delavallée
Purpose of this commit is to use the newly introduced helper to create test users in a quick way and reduce code duplication. 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-18[MOV][REF] test_mass_mailing: move and clean blacklist access rights testsThibault Delavallée
Purpose is to continue the move of some tests from mass_mailing to test_mass_mailing done at https://github.com/odoo/odoo/commit/0c37eb272fba1063444f0ec91db1fe543c1beebf. Some additional cases are added in the parsing of blacklist entries to test some corner cases. This commit is linked to task ID 1889703 and PR #27526.
2018-10-18[REF] test_mass_mailing: use odoo test helper method to create test usersThibault Delavallée
Purpose of this commit is to use the newly introduced helper to create test users in a quick way and reduce code duplication. This commit is linked to task ID 1889703 and PR #27526.
2018-10-18[REF] test_mail: use odoo test helper method to create test usersThibault Delavallée
Purpose of this commit is to use the newly introduced helper to create test users in a quick way and reduce code duplication. A mail specific helper tool function is defined based on the standard one defined in test allowing to pass a custom context. It bypasses mailing features in order to speedup the creation. 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.