(self)
| 2049 | Request(m, app=self.app) |
| 2050 | |
| 2051 | def test_execute(self): |
| 2052 | tid = uuid() |
| 2053 | job = self.xRequest(id=tid, args=[4], kwargs={}) |
| 2054 | assert job.execute() == 256 |
| 2055 | meta = self.mytask.backend.get_task_meta(tid) |
| 2056 | assert meta['status'] == states.SUCCESS |
| 2057 | assert meta['result'] == 256 |
| 2058 | |
| 2059 | def test_execute_backend_error_acks_late(self): |
| 2060 | """direct call to execute should reject task in case of internal failure.""" |
nothing calls this directly
no test coverage detected