Skip to content

Commit

Permalink
[FIX] fieldservice: Fix test failures due to missing assets when both…
Browse files Browse the repository at this point in the history
… Fieldservice and Website modules are installed
  • Loading branch information
ppyczko committed Feb 5, 2025
1 parent e8b9229 commit e7e46e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fieldservice/tests/test_fsm_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo.exceptions import UserError
from odoo.tests.common import tagged

from . import test_fsm_order


@tagged("post_install", "-at_install")
class TestFsmCategory(test_fsm_order.TestFSMOrder):
def setUp(self):
super().setUp()
Expand Down
4 changes: 3 additions & 1 deletion fieldservice/tests/test_fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

from odoo import fields
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form, TransactionCase
from odoo.tests.common import Form, TransactionCase, tagged


@tagged("post_install", "-at_install")
@freeze_time("2023-02-01")
class TestFSMOrderBase(TransactionCase):
def setUp(self):
Expand Down Expand Up @@ -119,6 +120,7 @@ def test_fsm_order_create(self):
self.assertRegex(str(res[0]), order.name)


@tagged("post_install", "-at_install")
class TestFSMOrder(TestFSMOrderBase):
def test_fsm_order(self):
"""Test creating new workorders, and test following functions,
Expand Down
2 changes: 2 additions & 0 deletions fieldservice/tests/test_fsm_order_template_onchange.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (C) 2019 Brian McMaster <brian@mcmpest.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields
from odoo.tests.common import tagged

from . import test_fsm_order


@tagged("post_install", "-at_install")
class TestTemplateOnchange(test_fsm_order.TestFSMOrderBase):
def setUp(self):
super().setUp()
Expand Down

0 comments on commit e7e46e6

Please sign in to comment.