(self)
| 753 | assert ts[0] is subs[0] |
| 754 | |
| 755 | def test_save_restore(self): |
| 756 | subs = [MockAsyncResultSuccess(uuid(), app=self.app), |
| 757 | MockAsyncResultSuccess(uuid(), app=self.app)] |
| 758 | ts = self.app.GroupResult(uuid(), subs) |
| 759 | ts.save() |
| 760 | with pytest.raises(AttributeError): |
| 761 | ts.save(backend=object()) |
| 762 | assert self.app.GroupResult.restore(ts.id).results == ts.results |
| 763 | ts.delete() |
| 764 | assert self.app.GroupResult.restore(ts.id) is None |
| 765 | with pytest.raises(AttributeError): |
| 766 | self.app.GroupResult.restore(ts.id, backend=object()) |
| 767 | |
| 768 | def test_save_restore_empty(self): |
| 769 | subs = [] |
nothing calls this directly
no test coverage detected