Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][FIX] attachment_zipped_download: Change SavepointCase to TransactionCase #513

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading