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

Method setup_method

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

CacheBackendClass · 0.90

Tested by

no test coverage detected