(self)
| 534 | assert tb.task_result_exists(tid) is True |
| 535 | |
| 536 | def test_mark_as_done(self): |
| 537 | tb = DatabaseBackend(self.uri, app=self.app) |
| 538 | |
| 539 | tid = uuid() |
| 540 | |
| 541 | assert tb.get_state(tid) == states.PENDING |
| 542 | assert tb.get_result(tid) is None |
| 543 | |
| 544 | tb.mark_as_done(tid, 42) |
| 545 | assert tb.get_state(tid) == states.SUCCESS |
| 546 | assert tb.get_result(tid) == 42 |
| 547 | |
| 548 | def test_is_pickled(self): |
| 549 | tb = DatabaseBackend(self.uri, app=self.app) |
nothing calls this directly
no test coverage detected