summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-09-18 15:58:49 +0200
committerThibault Delavallée <tde@odoo.com>2017-11-29 10:05:01 +0100
commitde25767ffc27e9fd02cb83940082e91e618c03f6 (patch)
tree9a704185595ef93bff5bd660ae9142f61e9b55f8 /addons/web/static/src/js/views/basic/basic_controller.js
parent2a3ac4ce22483035641e917edd60b69cd4d062e1 (diff)
[IMP] mail: tests: improve / add common classes and data for mail tests
This commit improves common classes and add helpers for mail tests. Future commits will use this new stuff to improve the tests. * improve existing models and add some of them. There are now several models * mail.test.simple: chatter-enabled record without any really advanced feature. Can be used everywhere standard chatter and communication tests are required; * mail.test.track: chatter-enabled record with basic value tracking and responsible tracking; * mail.test.activity: chatter-enabled record using activities; * mail.test.full: complete chatter-enabled record with advanced tracking, automatic subscription and automatic email send based on templates and tracking; * mail.test: chatter-enabled record having an alias. It can be used where umbrella record like projects or teams has to be used in tests; * add MockEmails test class: this class mocks the mail gateway so that tests can work on emails without actually sending them. It is taken out of TestMail class to clearly separate features from class; * improve created data in the various classes and prepare work to lessen created data during tests; * add helpers on base test class, notably * sudoAs: context manager to run a code snippet using a given user; * assertNotifications: assert notification content, aka Inbox or email notification and their content; may be subject to change depending on mail evolution; * assertEmails: check content of sent emails;
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions