Skip to content

Commit

Permalink
component: fix ComponentRegistryCase + TransactionComponentRegistryCase
Browse files Browse the repository at this point in the history
Before this fix, tests could hang forever as the new test suite runner could not close tests suites using a ComponentRegistryCase
  • Loading branch information
simahawk committed Aug 12, 2023
1 parent a7c7362 commit a5e3da1
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions component/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)

import copy
import unittest
from contextlib import contextmanager

import odoo
Expand Down Expand Up @@ -82,7 +81,7 @@ def setUp(self):
)


class ComponentRegistryCase(unittest.TestCase, common.MetaCase("DummyCase", (), {})):
class ComponentRegistryCase:
"""This test case can be used as a base for writings tests on components
This test case is meant to test components in a special component registry,
Expand Down Expand Up @@ -209,11 +208,5 @@ def tearDownClass(cls):
# pylint: disable=W8106
@classmethod
def setUpClass(cls):
# resolve an inheritance issue (common.TransactionCase does not use
# super)
common.TransactionCase.setUpClass()
super().setUpClass()
cls.collection = cls.env["collection.base"]

@classmethod
def tearDownClass(cls):
common.TransactionCase.tearDownClass()

0 comments on commit a5e3da1

Please sign in to comment.