From 6a343a32ef65731612f9721bd0807c44732b39be Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Fri, 21 Oct 2022 12:45:23 +0000 Subject: [PATCH] [REM] core: deprecated TestCase classes Part-of: odoo/odoo#98138 --- odoo/tests/common.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/odoo/tests/common.py b/odoo/tests/common.py index cfbbade72a7..c47bf0ab214 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -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