(patching)
| 14 | |
| 15 | |
| 16 | def test_blockdetection(patching): |
| 17 | signals = patching('celery.utils.debug.signals') |
| 18 | with debug.blockdetection(10): |
| 19 | signals.arm_alarm.assert_called_with(10) |
| 20 | signals.__setitem__.assert_called_with('ALRM', debug._on_blocking) |
| 21 | signals.__setitem__.assert_called_with('ALRM', signals['ALRM']) |
| 22 | signals.reset_alarm.assert_called_with() |
| 23 | |
| 24 | |
| 25 | def test_sample_mem(patching): |
nothing calls this directly
no test coverage detected