server-ux/multi_step_wizard/tests/common.py
2024-10-01 07:56:39 +02:00

23 lines
689 B
Python

# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from flectra_test_helper import FakeModelLoader
from flectra.tests import common
class CommonTestMultiStepWizard(common.TransactionCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.loader = FakeModelLoader(cls.env, cls.__module__)
cls.loader.backup_registry()
from .multi_step_wizard_test import MultiStepWizardTest
cls.loader.update_registry((MultiStepWizardTest,))
@classmethod
def tearDownClass(cls):
cls.loader.restore_registry()
return super().tearDownClass()