This makes tests independant of any demo data and ensure the company configuration is always consistent.
20 lines
588 B
Python
20 lines
588 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.payment.tests.common import PaymentCommon
|
|
|
|
|
|
class BuckarooCommon(PaymentCommon):
|
|
|
|
@classmethod
|
|
def setUpClass(cls, chart_template_ref=None):
|
|
super().setUpClass(chart_template_ref=chart_template_ref)
|
|
|
|
cls.buckaroo = cls._prepare_acquirer('buckaroo', update_values={
|
|
'buckaroo_website_key': 'dummy',
|
|
'buckaroo_secret_key': 'dummy',
|
|
})
|
|
|
|
# Override defaults
|
|
cls.acquirer = cls.buckaroo
|
|
cls.currency = cls.currency_euro
|