(arq_redis_msgpack: ArqRedis, worker)
| 699 | |
| 700 | |
| 701 | async def test_custom_serializers(arq_redis_msgpack: ArqRedis, worker): |
| 702 | j = await arq_redis_msgpack.enqueue_job('foobar', _job_id='job_id') |
| 703 | worker: Worker = worker( |
| 704 | functions=[foobar], job_serializer=msgpack.packb, job_deserializer=functools.partial(msgpack.unpackb, raw=False) |
| 705 | ) |
| 706 | info = await j.info() |
| 707 | assert info.function == 'foobar' |
| 708 | assert await worker.run_check() == 1 |
| 709 | assert await j.result() == 42 |
| 710 | r = await j.info() |
| 711 | assert r.result == 42 |
| 712 | |
| 713 | |
| 714 | class UnpickleFails: |
nothing calls this directly
no test coverage detected
searching dependent graphs…