From e9fbc1b7194b332f2d183ef21bec204bbfa72f91 Mon Sep 17 00:00:00 2001 From: RPSJR Date: Fri, 24 Nov 2023 09:52:36 -0300 Subject: [PATCH] rfc tests --- fleet_vehicle_ownership/tests/test_owner.py | 6 ++---- fleet_vehicle_ownership/tests/test_partner.py | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/fleet_vehicle_ownership/tests/test_owner.py b/fleet_vehicle_ownership/tests/test_owner.py index a698f10e..fb70ea3c 100644 --- a/fleet_vehicle_ownership/tests/test_owner.py +++ b/fleet_vehicle_ownership/tests/test_owner.py @@ -1,12 +1,10 @@ # Copyright 2023-Present RPSJR - Raimundo Junior # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -from odoo.tests import tagged -from odoo.tests.common import TransactionCase +from odoo.tests import SavepointCase -@tagged("-standard") -class TestFleetVehicleOwner(TransactionCase): +class TestFleetVehicleOwner(SavepointCase): def setUp(self): super().setUp() self.vehicle = self.env["fleet.vehicle"].create( diff --git a/fleet_vehicle_ownership/tests/test_partner.py b/fleet_vehicle_ownership/tests/test_partner.py index 2532c899..e268e9f7 100644 --- a/fleet_vehicle_ownership/tests/test_partner.py +++ b/fleet_vehicle_ownership/tests/test_partner.py @@ -1,9 +1,7 @@ -from odoo.tests import tagged -from odoo.tests.common import TransactionCase +from odoo.tests import SavepointCase -@tagged("-standard") -class TestResPartner(TransactionCase): +class TestResPartner(SavepointCase): def setUp(self): super(TestResPartner, self).setUp()