summaryrefslogtreecommitdiff
path: root/addons/payment_authorize/tests
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-01-10 09:11:47 +0000
committerPierre Masereel <pim@odoo.com>2019-01-10 23:47:57 +0000
commit132717c7b17f0e018b5e565646fa842e6227a079 (patch)
treef56b15f9f332de25b87a9a13f87ffac0878f09c2 /addons/payment_authorize/tests
parent5f724892e7a7b0f43802bf215bf9c96d4e1030f5 (diff)
[FIX] payment_*: tests
PAYPAL ------ The paypal tests are not working working for two reasons: - we check that there is no date in pending state on payment transaction, but since the refactoring in this commit: https://github.com/odoo/odoo/commit/01216345e28374b554bfe95df82d607c591271cf the date is always set before the validation of transaction. - Since the changes on dates, the datetime field doesn't return a string anymore and the comparison fails. So we convert the datetime to string for the comparison. BUCKAROO -------- The buckaroo tests were not working for multiple reasons. STRIPE ------ The payment stripe tests were not working because: - The reference set in transactions were not the same as the ones givent to the payment provider. - we were checking for a script tag in form that has been removed in commit https://github.com/odoo/odoo/commit/7c639be4aadce20bf6662ab347470fadf9afd99f AUTHORIZE --------- This test cannot be tested on runbot due to its server to server way of working closes odoo/odoo#30105
Diffstat (limited to 'addons/payment_authorize/tests')
-rw-r--r--addons/payment_authorize/tests/test_authorize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_authorize/tests/test_authorize.py b/addons/payment_authorize/tests/test_authorize.py
index 314d4bdd26a..a45275b07d8 100644
--- a/addons/payment_authorize/tests/test_authorize.py
+++ b/addons/payment_authorize/tests/test_authorize.py
@@ -188,7 +188,7 @@ class AuthorizeForm(AuthorizeCommon):
self.assertEqual(tx.state, 'cancel', 'Authorize: erroneous validation did not put tx into error state')
-@odoo.tests.tagged('post_install', '-at_install', '-standard', 'external')
+@odoo.tests.tagged('post_install', '-at_install', '-standard')
class AuthorizeForm(AuthorizeCommon):
def test_30_authorize_s2s(self):
# be sure not to do stupid thing