changeset c6a8464bdd8a in modules/marketing_automation:default
details: 
https://hg.tryton.org/modules/marketing_automation?cmd=changeset;node=c6a8464bdd8a
description:
        Check only the first payload

        There are two payloads only if html2text is installed.
diffstat:

 tests/scenario_marketing_automation.rst |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a906717af9aa -r c6a8464bdd8a tests/scenario_marketing_automation.rst
--- a/tests/scenario_marketing_automation.rst   Sat Mar 30 21:39:59 2019 +0100
+++ b/tests/scenario_marketing_automation.rst   Sat Mar 30 23:34:33 2019 +0100
@@ -131,7 +131,7 @@
     1
     >>> from_, to, msg = smtp_calls.call_args[0]
     >>> smtp_calls.reset_mock()
-    >>> msg = msg.get_payload(1).get_payload(decode=True).decode('utf-8')
+    >>> msg = msg.get_payload(0).get_payload(decode=True).decode('utf-8')
     >>> to == [contact.value]
     True
     >>> re.search(r'Hello, (.*)!', msg).group(1) == party.name

Reply via email to