MCPcopy
hub / github.com/celery/celery / test_no_backend

Method test_no_backend

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

CacheBackendClass · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected