MCPcopy
hub / github.com/celery/celery / test_no_implementations

Method test_no_implementations

t/unit/backends/test_cache.py:219–224  ·  view source on GitHub ↗
(self, mask_modules)

Source from the content-addressed store, hash-verified

217
218 @pytest.mark.masked_modules('pylibmc', 'memcache')
219 def test_no_implementations(self, mask_modules):
220 with conftest.reset_modules('celery.backends.cache'):
221 from celery.backends import cache
222 cache._imp = [None]
223 with pytest.raises(ImproperlyConfigured):
224 cache.get_best_memcache()
225
226 def test_cached(self):
227 with self.mock_pylibmc():

Callers

nothing calls this directly

Calls 1

raisesMethod · 0.45

Tested by

no test coverage detected