From 16acbcd01a69dc1565569a43c6318cda03286e99 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Thu, 14 Apr 2022 14:11:41 +0200 Subject: [PATCH] [14.0][IMP] account_payment_order: Set tests as post-install Since https://github.com/odoo/odoo/commit/81aac30dd2278e43a43cf8fd6cef31e1e8c60f3f AccountTestInvoicingCommon should be tagged post-install --- account_payment_order/tests/test_account_payment.py | 2 ++ account_payment_order/tests/test_payment_order_inbound.py | 3 ++- account_payment_order/tests/test_payment_order_outbound.py | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/account_payment_order/tests/test_account_payment.py b/account_payment_order/tests/test_account_payment.py index 6120563bb..1b4baafca 100644 --- a/account_payment_order/tests/test_account_payment.py +++ b/account_payment_order/tests/test_account_payment.py @@ -1,10 +1,12 @@ # Copyright 2019 ACSONE SA/NV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +from odoo.tests.common import tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon +@tagged("post_install", "-at_install") class TestAccountPayment(AccountTestInvoicingCommon): @classmethod def setUpClass(cls, chart_template_ref=None): diff --git a/account_payment_order/tests/test_payment_order_inbound.py b/account_payment_order/tests/test_payment_order_inbound.py index 3b1195697..38be186e2 100644 --- a/account_payment_order/tests/test_payment_order_inbound.py +++ b/account_payment_order/tests/test_payment_order_inbound.py @@ -6,7 +6,7 @@ from datetime import date, timedelta from odoo.exceptions import UserError, ValidationError -from odoo.tests.common import Form +from odoo.tests.common import Form, tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon @@ -77,6 +77,7 @@ class TestPaymentOrderInboundBase(AccountTestInvoicingCommon): return invoice_form.save() +@tagged("post_install", "-at_install") class TestPaymentOrderInbound(TestPaymentOrderInboundBase): def test_constrains_type(self): with self.assertRaises(ValidationError): diff --git a/account_payment_order/tests/test_payment_order_outbound.py b/account_payment_order/tests/test_payment_order_outbound.py index e751985c7..99cf6f188 100644 --- a/account_payment_order/tests/test_payment_order_outbound.py +++ b/account_payment_order/tests/test_payment_order_outbound.py @@ -6,7 +6,7 @@ from datetime import date, datetime, timedelta from odoo import fields from odoo.exceptions import UserError, ValidationError -from odoo.tests.common import Form +from odoo.tests.common import Form, tagged from odoo.addons.account.tests.common import AccountTestInvoicingCommon @@ -101,6 +101,7 @@ class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon): return wizard.new_move_ids +@tagged("post_install", "-at_install") class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase): def test_creation_due_date(self): self.mode.variable_journal_ids = self.bank_journal