From 09fb2469b490d48ce937a41a63447e099b93c637 Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 29 Mar 2019 14:35:23 +0000 Subject: [PATCH] [FIX] payment_paypal: fix tests Since changes made in this commit https://github.com/odoo/odoo/commit/fc1389f8d881adfb94ea1b784fb7104b9eee5d2d the value of field 'custom' is now set and wasn't before. closes odoo/odoo#32258 Signed-off-by: Toufik Benjaa (tbe) --- addons/payment_paypal/tests/test_paypal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/payment_paypal/tests/test_paypal.py b/addons/payment_paypal/tests/test_paypal.py index e70129f9333..67f3879c63c 100644 --- a/addons/payment_paypal/tests/test_paypal.py +++ b/addons/payment_paypal/tests/test_paypal.py @@ -67,6 +67,7 @@ class PaypalForm(PaypalCommon): 'return': urls.url_join(base_url, PaypalController._return_url), 'notify_url': urls.url_join(base_url, PaypalController._notify_url), 'cancel_return': urls.url_join(base_url, PaypalController._cancel_url), + 'custom': '{"return_url": "/payment/process"}', } # check form result @@ -140,7 +141,7 @@ class PaypalForm(PaypalCommon): 'item_name': u'test_ref_2', 'address_country': u'France', 'charset': u'windows-1252', - 'custom': u'', + 'custom': u'{"return_url": "/payment/process"}', 'notify_version': u'3.7', 'address_name': u'Norbert Poilu', 'pending_reason': u'multi_currency',