MCPcopy
hub / github.com/celery/celery / test_on_blocking

Function test_on_blocking

t/unit/utils/test_debug.py:8–13  ·  view source on GitHub ↗
(patching)

Source from the content-addressed store, hash-verified

6
7
8def test_on_blocking(patching):
9 getframeinfo = patching('inspect.getframeinfo')
10 frame = Mock(name='frame')
11 with pytest.raises(RuntimeError):
12 debug._on_blocking(1, frame)
13 getframeinfo.assert_called_with(frame)
14
15
16def test_blockdetection(patching):

Callers

nothing calls this directly

Calls 2

patchingFunction · 0.85
raisesMethod · 0.45

Tested by

no test coverage detected