diff options
| author | Deep Bundela <dbu@odoo.com> | 2015-09-04 15:54:56 +0200 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2015-09-04 16:08:22 +0200 |
| commit | f76c78d598307e337db19cc89688c57b84480cda (patch) | |
| tree | b0e0b87bd6ecb6beff43e43f5995d9214a017f84 /addons/payment_authorize/tests | |
| parent | cf394d953cece3522b09158c82fe1ee4ddd3cc11 (diff) | |
[IMP] payment_*: use standard fields to store tx information instead of adding specific fields for every.payment.provider
Diffstat (limited to 'addons/payment_authorize/tests')
| -rw-r--r-- | addons/payment_authorize/tests/test_authorize.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/payment_authorize/tests/test_authorize.py b/addons/payment_authorize/tests/test_authorize.py index eda6c4d3a5c..f038016d579 100644 --- a/addons/payment_authorize/tests/test_authorize.py +++ b/addons/payment_authorize/tests/test_authorize.py @@ -161,10 +161,10 @@ class AuthorizeForm(AuthorizeCommon): self.payment_transaction.form_feedback(cr, uid, authorize_post_data, 'authorize', context=context) # check state self.assertEqual(tx.state, 'done', 'Authorize: validation did not put tx into done state') - self.assertEqual(tx.authorize_txnid, authorize_post_data.get('x_trans_id'), 'Authorize: validation did not update tx payid') + self.assertEqual(tx.acquirer_reference, authorize_post_data.get('x_trans_id'), 'Authorize: validation did not update tx payid') # reset tx - tx.write({'state': 'draft', 'date_validate': False, 'authorize_txnid': False}) + tx.write({'state': 'draft', 'date_validate': False, 'acquirer_reference': False}) # simulate an error authorize_post_data['x_response_code'] = u'3' |
