(self, manager)
| 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): |
nothing calls this directly
no test coverage detected