From b7e3b9ea16b11ecec20482c03d673bd88828190f Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Tue, 24 Oct 2023 16:36:21 +0200 Subject: [PATCH] Fix execution of tests post install --- stock_available_to_promise_release/tests/common.py | 3 +-- stock_available_to_promise_release/tests/test_reservation.py | 3 +++ stock_available_to_promise_release/tests/test_unrelease.py | 2 ++ .../tests/test_unrelease_2steps.py | 3 +++ .../tests/test_unrelease_3steps.py | 3 +++ 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/stock_available_to_promise_release/tests/common.py b/stock_available_to_promise_release/tests/common.py index 8cf631dba94..0d6eb1e97c3 100644 --- a/stock_available_to_promise_release/tests/common.py +++ b/stock_available_to_promise_release/tests/common.py @@ -2,10 +2,9 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). from odoo import fields -from odoo.tests import common, tagged +from odoo.tests import common -@tagged("post_install", "-at_install") class PromiseReleaseCommonCase(common.SavepointCase): @classmethod def setUpClass(cls): diff --git a/stock_available_to_promise_release/tests/test_reservation.py b/stock_available_to_promise_release/tests/test_reservation.py index b51013fdd3d..43879bec2e0 100644 --- a/stock_available_to_promise_release/tests/test_reservation.py +++ b/stock_available_to_promise_release/tests/test_reservation.py @@ -6,9 +6,12 @@ from dateutil.relativedelta import relativedelta from freezegun import freeze_time +from odoo.tests import tagged + from .common import PromiseReleaseCommonCase +@tagged("post_install", "-at_install") class TestAvailableToPromiseRelease(PromiseReleaseCommonCase): def test_horizon_date(self): move = self.env["stock.move"].create( diff --git a/stock_available_to_promise_release/tests/test_unrelease.py b/stock_available_to_promise_release/tests/test_unrelease.py index 854392b2e4f..9c32ac4b95f 100644 --- a/stock_available_to_promise_release/tests/test_unrelease.py +++ b/stock_available_to_promise_release/tests/test_unrelease.py @@ -5,10 +5,12 @@ from datetime import datetime from odoo.exceptions import UserError +from odoo.tests import tagged from .common import PromiseReleaseCommonCase +@tagged("post_install", "-at_install") class TestAvailableToPromiseRelease(PromiseReleaseCommonCase): @classmethod def setUpClass(cls): diff --git a/stock_available_to_promise_release/tests/test_unrelease_2steps.py b/stock_available_to_promise_release/tests/test_unrelease_2steps.py index 3cf78faccc3..c2214e23ade 100644 --- a/stock_available_to_promise_release/tests/test_unrelease_2steps.py +++ b/stock_available_to_promise_release/tests/test_unrelease_2steps.py @@ -3,9 +3,12 @@ from datetime import datetime +from odoo.tests import tagged + from .common import PromiseReleaseCommonCase +@tagged("post_install", "-at_install") class TestAvailableToPromiseRelease(PromiseReleaseCommonCase): @classmethod def setUpClass(cls): diff --git a/stock_available_to_promise_release/tests/test_unrelease_3steps.py b/stock_available_to_promise_release/tests/test_unrelease_3steps.py index 8e71398a017..efe1e04d92e 100644 --- a/stock_available_to_promise_release/tests/test_unrelease_3steps.py +++ b/stock_available_to_promise_release/tests/test_unrelease_3steps.py @@ -3,9 +3,12 @@ from datetime import datetime +from odoo.tests import tagged + from .common import PromiseReleaseCommonCase +@tagged("post_install", "-at_install") class TestAvailableToPromiseRelease3steps(PromiseReleaseCommonCase): @classmethod def setUpClass(cls):