mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 14:31:59 +02:00
17 lines
586 B
Python
17 lines
586 B
Python
# Copyright 2023 ACSONE SA/NV
|
|
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL).
|
|
|
|
from odoo.addons.extendable.tests.common import ExtendableMixin
|
|
from odoo.addons.fastapi.tests.common import (
|
|
FastAPITransactionCase as BaseFastAPITransactionCase,
|
|
)
|
|
|
|
|
|
class FastAPITransactionCase(BaseFastAPITransactionCase, ExtendableMixin):
|
|
"""Base class for FastAPI tests using extendable classes."""
|
|
|
|
@classmethod
|
|
def setUpClass(cls) -> None:
|
|
super().setUpClass()
|
|
cls.init_extendable_registry()
|
|
cls.addClassCleanup(cls.reset_extendable_registry)
|