MCPcopy
hub / github.com/celery/celery / test_AsyncResult

Method test_AsyncResult

t/unit/app/test_app.py:1072–1077  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1070
1071 @pytest.mark.usefixtures('depends_on_current_app')
1072 def test_AsyncResult(self):
1073 x = self.app.AsyncResult('1')
1074 assert x.app is self.app
1075 r = loads(dumps(x))
1076 # not set as current, so ends up as default app after reduce
1077 assert r.app is current_app._get_current_object()
1078
1079 def test_get_active_apps(self):
1080 assert list(_state._get_active_apps())

Callers

nothing calls this directly

Calls 2

AsyncResultMethod · 0.45
_get_current_objectMethod · 0.45

Tested by

no test coverage detected