mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-23 04:22:04 -06:00
[FIX] attachment_zipped_download: Change SavepointCase to TransactionCase
This commit is contained in:
parent
da81ac1948
commit
a3aa2fdbbd
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user