MCPcopy Create free account
hub / github.com/celery/celery / test_second_order_replace

Method test_second_order_replace

t/integration/test_canvas.py:301–314  ·  view source on GitHub ↗
(self, manager)

Source from the content-addressed store, hash-verified

299
300 @flaky
301 def test_second_order_replace(self, manager):
302 if not manager.app.conf.result_backend.startswith('redis'):
303 raise pytest.skip('Requires redis result backend.')
304
305 redis_connection = get_redis_connection()
306 redis_connection.delete('redis-echo')
307
308 result = second_order_replace1.delay()
309 result.get(timeout=TIMEOUT)
310 redis_messages = list(redis_connection.lrange('redis-echo', 0, -1))
311
312 expected_messages = [b'In A', b'In B', b'In/Out C', b'Out B',
313 b'Out A']
314 assert redis_messages == expected_messages
315
316 @flaky
317 def test_replace_with_chain_that_contains_a_group(self, manager):

Callers

nothing calls this directly

Calls 5

get_redis_connectionFunction · 0.85
lrangeMethod · 0.80
deleteMethod · 0.45
delayMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected