Skip to content
Open
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
8 changes: 7 additions & 1 deletion queue_job/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
from unittest import TestCase, mock

from odoo.tests.case import TestCase as _TestCase
from odoo.tests.common import MetaCase
from odoo.tests.common import SETATTR_SOURCES, MetaCase

from odoo.addons.queue_job.delay import Graph

# pylint: disable=odoo-addons-relative-import
from odoo.addons.queue_job.job import Job

# Register queue_job patcher as a known path to prevent verbose warning
# in tests when methods are patched.
SETATTR_SOURCES["_patch_method"] = tuple(
list(SETATTR_SOURCES.get("_patch_method", [])) + ["/queue_job/models/base.py"],
)


@contextmanager
def trap_jobs():
Expand Down
Loading