MCPcopy
hub / github.com/celery/celery / test_memcache

Method test_memcache

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

Source from the content-addressed store, hash-verified

208
209 @pytest.mark.masked_modules('pylibmc')
210 def test_memcache(self, mask_modules):
211 with self.mock_memcache():
212 with conftest.reset_modules('celery.backends.cache'):
213 from celery.backends import cache
214 cache._imp = [None]
215 assert (cache.get_best_memcache()[0]().__module__ ==
216 'memcache')
217
218 @pytest.mark.masked_modules('pylibmc', 'memcache')
219 def test_no_implementations(self, mask_modules):

Callers

nothing calls this directly

Calls 1

mock_memcacheMethod · 0.80

Tested by

no test coverage detected