mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[14.0][IMP] account_payment_order: Set tests as post-install
Since 81aac30dd2
AccountTestInvoicingCommon should be tagged post-install
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user