(self, caplog)
| 802 | |
| 803 | @flaky |
| 804 | def test_task_failed(self, caplog): |
| 805 | result = self.call_task_with_reprs(fail.s(2, 2)) |
| 806 | with pytest.raises(ExpectedException): |
| 807 | result.get(timeout=5) |
| 808 | assert result.failed() is True |
| 809 | |
| 810 | self.assert_trace_log(caplog, result, [ |
| 811 | ('celery.worker.strategy', logging.INFO, |
| 812 | celery.app.trace.LOG_RECEIVED, |
| 813 | ), |
| 814 | ('celery.app.trace', logging.ERROR, |
| 815 | celery.app.trace.LOG_FAILURE, |
| 816 | ), |
| 817 | ]) |
| 818 | |
| 819 | |
| 820 | class test_task_redis_result_backend: |
nothing calls this directly
no test coverage detected