summaryrefslogtreecommitdiff
path: root/addons/payment_sips
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2020-07-14 08:15:26 +0000
committerLaurent Smet <las@odoo.com>2020-07-16 07:25:52 +0000
commit85e187ebb533f09875de2974d5da136bd1971c9e (patch)
tree404405f797fa27aa4c1871fc73777721a24366f7 /addons/payment_sips
parentd421934ff851f86dc797b04028e7fb45d0193790 (diff)
[IMP] payment(_*): Remove dependency to AccountTestCommon
l10n runbot builds are all failing when running at least one test depending of AccountTestCommon because it: - doesn't create a sandboxed testing environnement to manage the multi-currency, multi-company, the default company's currency, the exchange rates... - doesn't setup a testing user then all tests are done using the superuser. - doesn't provide a fully setup chart of accounts: exchange difference journal is not set, accounts have bad types, etc... - is run sometimes at-install. --task: 2296213
Diffstat (limited to 'addons/payment_sips')
-rw-r--r--addons/payment_sips/tests/test_sips.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/addons/payment_sips/tests/test_sips.py b/addons/payment_sips/tests/test_sips.py
index 3ab711f9eb1..3b0bd2279e4 100644
--- a/addons/payment_sips/tests/test_sips.py
+++ b/addons/payment_sips/tests/test_sips.py
@@ -6,10 +6,11 @@ from odoo.addons.payment.tests.common import PaymentAcquirerCommon
@tagged('post_install', '-at_install', '-standard', 'external')
class SipsTest(PaymentAcquirerCommon):
- def setUp(self):
- super().setUp()
- self.sips = self.env.ref('payment.payment_acquirer_sips')
- self.sips.write({
+ @classmethod
+ def setUpClass(cls, chart_template_ref=None):
+ super().setUpClass(chart_template_ref=chart_template_ref)
+ cls.sips = cls.env.ref('payment.payment_acquirer_sips')
+ cls.sips.write({
'state': 'test',
'sips_merchant_id': 'dummy_mid',
'sips_secret': 'dummy_secret',