def _mock_job(self):
        self._orig_job = resources.enqueue
        resources.enqueue = MagicMock()
Mock task performing job
dataset/ETHPy150Open nvbn/coviolations_web/nodes/tests/test_resources.py/NodeTaskHookResourceCase._mock_job