From a3aa2fdbbdd71548ca9202ce2915782dd34f45d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Wed, 18 Dec 2024 13:38:38 +0100 Subject: [PATCH] [FIX] attachment_zipped_download: Change SavepointCase to TransactionCase --- .../tests/test_attachment_zipped_download.py | 4 ++-- .../tests/test_ir_attachment_action_download.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/attachment_zipped_download/tests/test_attachment_zipped_download.py b/attachment_zipped_download/tests/test_attachment_zipped_download.py index 1422905eee3..c2e75f84c4c 100644 --- a/attachment_zipped_download/tests/test_attachment_zipped_download.py +++ b/attachment_zipped_download/tests/test_attachment_zipped_download.py @@ -4,7 +4,7 @@ from unittest import TestCase from odoo.exceptions import AccessError -from odoo.tests import HttpCase, SavepointCase, new_test_user +from odoo.tests import HttpCase, TransactionCase, new_test_user class TestAttachmentZippedDownloadBase(TestCase): @@ -49,7 +49,7 @@ def test_action_attachments_download(self): self.assertEqual(response.status_code, 200) -class TestAttachmentZipped(SavepointCase, TestAttachmentZippedDownloadBase): +class TestAttachmentZipped(TransactionCase, TestAttachmentZippedDownloadBase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/attachment_zipped_download/tests/test_ir_attachment_action_download.py b/attachment_zipped_download/tests/test_ir_attachment_action_download.py index 5a5dc988cb0..6023949fb61 100644 --- a/attachment_zipped_download/tests/test_ir_attachment_action_download.py +++ b/attachment_zipped_download/tests/test_ir_attachment_action_download.py @@ -3,12 +3,12 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo_test_helper import FakeModelLoader -from odoo.tests import SavepointCase +from odoo.tests import TransactionCase from .test_attachment_zipped_download import TestAttachmentZippedDownloadBase -class TestMixin(SavepointCase, TestAttachmentZippedDownloadBase): +class TestMixin(TransactionCase, TestAttachmentZippedDownloadBase): @classmethod def setUpClass(cls): super().setUpClass()