(arq_redis: ArqRedis, worker)
| 119 | |
| 120 | |
| 121 | async def test_job_error(arq_redis: ArqRedis, worker): |
| 122 | async def foobar(ctx): |
| 123 | raise RuntimeError('foobar error') |
| 124 | |
| 125 | j = await arq_redis.enqueue_job('foobar') |
| 126 | worker: Worker = worker(functions=[func(foobar, name='foobar')]) |
| 127 | await worker.main() |
| 128 | |
| 129 | with pytest.raises(RuntimeError, match='foobar error'): |
| 130 | await j.result(poll_delay=0) |
| 131 | |
| 132 | |
| 133 | async def test_job_info(arq_redis: ArqRedis): |
nothing calls this directly
no test coverage detected
searching dependent graphs…