Browse Source

Leave test mode after base kanban stage tests

12.0
Florian da Costa 8 years ago
committed by mreficent
parent
commit
02f79348dc
  1. 5
      base_kanban_stage/tests/test_base_kanban_abstract.py

5
base_kanban_stage/tests/test_base_kanban_abstract.py

@ -48,6 +48,11 @@ class TestBaseKanbanAbstract(SavepointCase):
cls._init_test_model(BaseKanbanAbstractTester) cls._init_test_model(BaseKanbanAbstractTester)
cls.test_model = cls.env[BaseKanbanAbstractTester._name] cls.test_model = cls.env[BaseKanbanAbstractTester._name]
@classmethod
def tearDownClass(cls):
cls.env.registry.leave_test_mode()
super(TestBaseKanbanAbstract, cls).tearDownClass()
def setUp(self): def setUp(self):
super(TestBaseKanbanAbstract, self).setUp() super(TestBaseKanbanAbstract, self).setUp()
test_stage_1 = self.env['base.kanban.stage'].create({ test_stage_1 = self.env['base.kanban.stage'].create({

Loading…
Cancel
Save