[FIX] attachment_queue: adapt to fixed trap jobs helper

See https://github.com/OCA/queue/pull/542
pull/2646/head
Stefan Rijnhart 2023-06-05 19:24:34 +02:00
parent e6a680980c
commit dd2d2eb691
1 changed files with 2 additions and 2 deletions

View File

@ -52,9 +52,9 @@ class TestAttachmentBaseQueue(TransactionCase):
def test_job_created(self):
with trap_jobs() as trap:
self._create_dummy_attachment()
attachment = self._create_dummy_attachment()
trap.assert_enqueued_job(
self.env["attachment.queue"].run_as_job,
attachment.run_as_job,
)
def test_aq_locked_job(self):