|
@@ -19,6 +19,7 @@ from celery.result import (
|
|
|
AsyncResult,
|
|
|
EagerResult,
|
|
|
ResultSet,
|
|
|
+ GroupResult,
|
|
|
result_from_tuple,
|
|
|
assert_will_not_block,
|
|
|
)
|
|
@@ -615,6 +616,13 @@ class test_GroupResult:
|
|
|
with pytest.raises(AttributeError):
|
|
|
self.app.GroupResult.restore(ts.id, backend=object())
|
|
|
|
|
|
+ def test_restore_app(self):
|
|
|
+ subs = [MockAsyncResultSuccess(uuid(), app=self.app)]
|
|
|
+ ts = self.app.GroupResult(uuid(), subs)
|
|
|
+ ts.save()
|
|
|
+ restored = GroupResult.restore(ts.id, app=self.app)
|
|
|
+ assert restored.id == ts.id
|
|
|
+
|
|
|
def test_join_native(self):
|
|
|
backend = SimpleBackend()
|
|
|
results = [self.app.AsyncResult(uuid(), backend=backend)
|