MCPcopy
hub / github.com/celery/celery / test_is_cached

Method test_is_cached

t/unit/backends/test_base.py:497–501  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

495 assert isinstance(self.b.prepare_value(g), self.app.GroupResult)
496
497 def test_is_cached(self):
498 b = BaseBackend(app=self.app, max_cached_results=1)
499 b._cache['foo'] = 1
500 assert b.is_cached('foo')
501 assert not b.is_cached('false')
502
503 def test_mark_as_done__chord(self):
504 b = BaseBackend(app=self.app)

Callers

nothing calls this directly

Calls 2

BaseBackendClass · 0.90
is_cachedMethod · 0.80

Tested by

no test coverage detected