summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2018-02-14 14:17:36 +0100
committerDenis Ledoux <dle@odoo.com>2018-02-14 14:26:39 +0100
commit0db75089ef61ef5789a4be651ae60643e8b9eee3 (patch)
tree4687689bec1a17695ea6520548c898516c0d67cd /addons/web/static/src/js/views/basic
parent91f2209216a964b3b2fbfe54ed4cc684357d0d98 (diff)
[FIX] base: prevent PhantomJS tests to send emails
The emails sending is skipped during the tests. The mecanism to determine if the server was running tests was to check if the attribute `testing` was set for the thread. Unfortunately, this `testing` attribute is removed/set to false after the loading/installation of the modules is done, and phantomJS tests are ran post-installation, and therefore the emails that were potentialy sent following an action performed in a PhantomJS tour were not skipped. This occurred for instance in the tour `project.tour`, when the responsible of a task was changed, the sending of the assignation notification email was not skipped. In the case the machine on which the tests are ran does not have an smtp server (or mailcatcher) running on the port 25, this resulted in a test fail.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions