Skip to content

Commit

Permalink
Fix execution of tests post install
Browse files Browse the repository at this point in the history
  • Loading branch information
grindtildeath committed Oct 24, 2023
1 parent 86e3772 commit b7e3b9e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions stock_available_to_promise_release/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 3 additions & 0 deletions stock_available_to_promise_release/tests/test_reservation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions stock_available_to_promise_release/tests/test_unrelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b7e3b9e

Please sign in to comment.