Skip to content

Commit

Permalink
[FIX] queue_job: Migrate unittest.TestCase tests to common.Transactio…
Browse files Browse the repository at this point in the history
…nCase
  • Loading branch information
paradoxxxzero committed Jun 4, 2024
1 parent 624e64d commit 46f344e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions queue_job/tests/test_delayable.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# copyright 2019 Camptocamp
# license agpl-3.0 or later (http://www.gnu.org/licenses/agpl.html)

import unittest

import mock

from odoo.tests import common

# pylint: disable=odoo-addons-relative-import
from odoo.addons.queue_job.delay import Delayable, DelayableGraph


class TestDelayable(unittest.TestCase):
class TestDelayable(common.TransactionCase):
def setUp(self):
super().setUp()
self.recordset = mock.MagicMock(name="recordset")
Expand Down
4 changes: 2 additions & 2 deletions queue_job/tests/test_delayable_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# @author Florian Mounier <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import unittest
from odoo.tests import common

# pylint: disable=odoo-addons-relative-import
from odoo.addons.queue_job.delay import Delayable


class TestDelayableSplit(unittest.TestCase):
class TestDelayableSplit(common.TransactionCase):
def setUp(self):
super().setUp()

Expand Down

0 comments on commit 46f344e

Please sign in to comment.