MCPcopy
hub / github.com/celery/celery / setup_method

Method setup_method

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

Source from the content-addressed store, hash-verified

21class test_CacheBackend:
22
23 def setup_method(self):
24 self.app.conf.result_serializer = 'pickle'
25 self.tb = CacheBackend(backend='memory://', app=self.app)
26 self.tid = uuid()
27 self.old_get_best_memcached = backends['memcache']
28 backends['memcache'] = lambda: (DummyClient, ensure_bytes)
29
30 def teardown_method(self):
31 backends['memcache'] = self.old_get_best_memcached

Callers

nothing calls this directly

Calls 1

CacheBackendClass · 0.90

Tested by

no test coverage detected