MCPcopy
hub / github.com/celery/celery / test_restore_app

Method test_restore_app

t/unit/tasks/test_result.py:778–783  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

776 assert self.app.GroupResult.restore(ts.id).results == ts.results == []
777
778 def test_restore_app(self):
779 subs = [MockAsyncResultSuccess(uuid(), app=self.app)]
780 ts = self.app.GroupResult(uuid(), subs)
781 ts.save()
782 restored = GroupResult.restore(ts.id, app=self.app)
783 assert restored.id == ts.id
784
785 def test_restore_current_app_fallback(self):
786 subs = [MockAsyncResultSuccess(uuid(), app=self.app)]

Callers

nothing calls this directly

Calls 4

saveMethod · 0.95
GroupResultMethod · 0.80
restoreMethod · 0.45

Tested by

no test coverage detected