server-ux/multi_step_wizard/tests/common.py

23 lines
680 B
Python
Raw Permalink Normal View History

2021-04-28 15:44:37 +00:00
# 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.SavepointCase):
@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()
super().tearDownClass()