Merge PR #513 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot 2024-12-18 15:10:51 +00:00
commit e2102a50f9
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import base64
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 @@ class TestAttachmentZippedDownload(HttpCase, TestAttachmentZippedDownloadBase):
self.assertEqual(response.status_code, 200)
class TestAttachmentZipped(SavepointCase, TestAttachmentZippedDownloadBase):
class TestAttachmentZipped(TransactionCase, TestAttachmentZippedDownloadBase):
@classmethod
def setUpClass(cls):
super().setUpClass()

View File

@ -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()