MCPcopy Create free account
hub / github.com/celery/celery / test_no_backend

Method test_no_backend

t/unit/backends/test_cache.py:34–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 backends['memcache'] = self.old_get_memcache_client
33
34 def test_no_backend(self):
35 self.app.conf.cache_backend = None
36 with pytest.raises(ImproperlyConfigured):
37 CacheBackend(backend=None, app=self.app)
38
39 def test_memory_client_is_shared(self):
40 """This test verifies that memory:// backend state is shared over multiple threads"""

Callers

nothing calls this directly

Calls 2

CacheBackendClass · 0.90
raisesMethod · 0.80

Tested by

no test coverage detected