MCPcopy
hub / github.com/celery/celery / test_assert_will_not_block

Method test_assert_will_not_block

t/unit/tasks/test_result.py:105–110  ·  view source on GitHub ↗
(self, task_join_will_block)

Source from the content-addressed store, hash-verified

103
104 @patch('celery.result.task_join_will_block')
105 def test_assert_will_not_block(self, task_join_will_block):
106 task_join_will_block.return_value = True
107 with pytest.raises(RuntimeError):
108 assert_will_not_block()
109 task_join_will_block.return_value = False
110 assert_will_not_block()
111
112 @patch('celery.result.task_join_will_block')
113 def test_get_sync_subtask_option(self, task_join_will_block):

Callers

nothing calls this directly

Calls 2

assert_will_not_blockFunction · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected