[REM] core: deprecated TestCase classes

Part-of: odoo/odoo#98138
This commit is contained in:
xmo-odoo
2022-10-26 19:03:47 +02:00
committed by Xavier Morel
parent 84e6be4150
commit 6a343a32ef
-21
View File
@@ -868,16 +868,6 @@ class TransactionCase(BaseCase):
self.patch(self.registry['res.partner'], '_get_gravatar_image', lambda *a: False)
class SavepointCase(TransactionCase):
@classmethod
def __init_subclass__(cls):
super().__init_subclass__()
warnings.warn(
"Deprecated class SavepointCase has been merged into TransactionCase",
DeprecationWarning, stacklevel=2,
)
class SingleTransactionCase(BaseCase):
""" TestCase in which all test methods are run in the same transaction,
the transaction is started with the first test method and rolled back at
@@ -1901,17 +1891,6 @@ class HttpCase(TransactionCase):
return profiler.Nested(_profiler, patch('odoo.http.Request._get_profiler_context_manager', route_profiler))
# kept for backward compatibility
class HttpSavepointCase(HttpCase):
@classmethod
def __init_subclass__(cls):
super().__init_subclass__()
warnings.warn(
"Deprecated class HttpSavepointCase has been merged into HttpCase",
DeprecationWarning, stacklevel=2,
)
def no_retry(arg):
"""Disable auto retry on decorated test method or test class"""
arg._retry = False