This makes tests independant of any demo data and ensure the company configuration is always consistent.
21 lines
673 B
Python
21 lines
673 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class AuthorizeCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls, chart_template_ref=None):
|
|
super().setUpClass(chart_template_ref=chart_template_ref)
|
|
|
|
cls.authorize = cls._prepare_acquirer('authorize', update_values={
|
|
'authorize_login': 'dummy',
|
|
'authorize_transaction_key': 'dummy',
|
|
'authorize_signature_key': '00000000',
|
|
'authorize_currency_id': cls.currency_usd.id,
|
|
})
|
|
|
|
cls.acquirer = cls.authorize
|
|
cls.currency = cls.currency_usd
|