Esempio n. 1
0
 def wrapper(*args, **kwargs):
     _configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     cache = set_cache()
     func(cache, *args, **kwargs)
     ctx.cfg['caching.system'] = _configured_cache
     cache = set_cache()
Esempio n. 2
0
 def wrapper(*args, **kwargs):
     _configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     cache = set_cache()
     func(cache, *args, **kwargs)
     ctx.cfg['caching.system'] = _configured_cache
     cache = set_cache()
Esempio n. 3
0
 def tearDown(self):
     ctx.cfg['caching.system'] = self._configured_cache
     self.cache = set_cache()
Esempio n. 4
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     self.cache = set_cache()
Esempio n. 5
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'database'
     self.cache = set_cache()
     self.cache.clear()
Esempio n. 6
0
 def tearDown(self):
     ctx.cfg['caching.system'] = self._configured_cache
     Storage.query.delete()
     self.cache = set_cache()
     self.storage = CachedStorage(self.cache)
Esempio n. 7
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     self.cache = set_cache()
     self.storage = CachedStorage(self.cache)
Esempio n. 8
0
 def tearDown(self):
     ctx.cfg['caching.system'] = self._configured_cache
     Storage.query.delete()
     self.cache = set_cache()
     self.storage = CachedStorage(self.cache)
Esempio n. 9
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     self.cache = set_cache()
     self.storage = CachedStorage(self.cache)
Esempio n. 10
0
 def tearDown(self):
     ctx.cfg['caching.system'] = self._configured_cache
     self.cache = set_cache()
Esempio n. 11
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'simple'
     self.cache = set_cache()
Esempio n. 12
0
 def setUp(self):
     self._configured_cache = ctx.cfg['caching.system']
     ctx.cfg['caching.system'] = 'database'
     self.cache = set_cache()
     self.cache.clear()