-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] edi_party_data_oca: tests (workaround)
- Loading branch information
1 parent
755d6cb
commit 49f63b5
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
# @author: Simone Orsi <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo_test_helper import FakeModelLoader | ||
|
||
from odoo.addons.edi_oca.tests.common import EDIBackendCommonComponentTestCase | ||
|
||
from ..utils import get_party_data_component | ||
|
@@ -11,6 +13,12 @@ class PartyDataTestCase(EDIBackendCommonComponentTestCase): | |
@classmethod | ||
def setUpClass(cls): | ||
super().setUpClass() | ||
|
||
# force reload of the registry that is impacted by edi_oca tests | ||
cls.loader = FakeModelLoader(cls.env, cls.__module__) | ||
cls.loader.backup_registry() | ||
cls.loader.update_registry(()) | ||
|
||
cls.backend = cls.env.ref("edi_oca.demo_edi_backend") | ||
cls.cat_model = cls.env["res.partner.id_category"] | ||
cls.all_cat = cls.cat_model.browse() | ||
|