def setUp(self): # django.test.TestCase flushes the database so we have to clear the redis side as well to be consistent. redis.flushdb() cache.flush_all() CachedCall.inprocess_cache.flush() django.test.TestCase.setUp(self) self.restore_facebook = self.mock_facebook() self.after_setUp()
def after_setUp(self): CachedCall.inprocess_cache = NoCache() cache.flush_all()
def after_setUp(self): cache.flush_all() CachedCall.inprocess_cache = InProcessCache()
def after_setUp(self): cache.flush_all()