diff options
| author | xmo-odoo <xmo@odoo.com> | 2017-10-25 15:31:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-25 15:31:58 +0200 |
| commit | f13cab6aa6d3181336abbfbe52dbc6330dab6fc2 (patch) | |
| tree | 7f53f02c8fdeb5f0e74d67f47196021a3de1f786 /addons/website_mail_channel/tests/__init__.py | |
| parent | 598ac60a776134e35e023e6c5f7cd2c5876edf81 (diff) | |
[FIX] website_mail_channel: unsubscription
Fixes 27280fefa9e7cad0143aca688149f19ebdb684f6:
* `partner_id` is an `int` not a recordset
* qweb Response is lazy (the template is only looked up and rendered
when we actually need to send the content over the wire) => the error
would occur outside of the try..except block. Force rendering
(`Response.flatten`) so we can handle the issue here
* Uses the HttpCase interface to contact the server over a new socket
(same as tours & al) because using `werkzeug.test.Client` would not
use the correct cursor (?) and so the test data would not be visible
Diffstat (limited to 'addons/website_mail_channel/tests/__init__.py')
| -rw-r--r-- | addons/website_mail_channel/tests/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_mail_channel/tests/__init__.py b/addons/website_mail_channel/tests/__init__.py new file mode 100644 index 00000000000..2e3364d701d --- /dev/null +++ b/addons/website_mail_channel/tests/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import test_unsubscribe |
