(arq_redis: ArqRedis, caplog)
| 284 | |
| 285 | |
| 286 | async def test_enqueue_multiple(arq_redis: ArqRedis, caplog): |
| 287 | caplog.set_level(logging.DEBUG) |
| 288 | results = await asyncio.gather(*[arq_redis.enqueue_job('foobar', i, _job_id='testing') for i in range(10)]) |
| 289 | assert sum(r is not None for r in results) == 1 |
| 290 | assert sum(r is None for r in results) == 9 |
| 291 | assert 'WatchVariableError' not in caplog.text |
nothing calls this directly
no test coverage detected
searching dependent graphs…