mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 12:32:01 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# Copyright 2016-2019 Camptocamp SA
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo.tests import common
|
||||
|
||||
from odoo.addons.queue_job.job import Job
|
||||
|
||||
|
||||
class JobCommonCase(common.TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.queue_job = cls.env["queue.job"]
|
||||
cls.user = cls.env["res.users"]
|
||||
cls.method = cls.env["test.queue.job"].testing_method
|
||||
|
||||
def _create_job(self):
|
||||
test_job = Job(self.method)
|
||||
test_job.store()
|
||||
stored = Job.db_record_from_uuid(self.env, test_job.uuid)
|
||||
self.assertEqual(len(stored), 1)
|
||||
return stored
|
||||
Loading…
Add table
Add a link
Reference in a new issue