Skip to content

Commit

Permalink
[FIX] attachment_zipped_download: Change SavepointCase to Transaction…
Browse files Browse the repository at this point in the history
…Case
  • Loading branch information
victoralmau committed Dec 18, 2024
1 parent da81ac1 commit a3aa2fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a3aa2fd

Please sign in to comment.