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()
예제 #2
0
 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()
예제 #6
0
 def after_setUp(self):
     CachedCall.inprocess_cache = NoCache()
     cache.flush_all()
예제 #7
0
 def after_setUp(self):
     cache.flush_all()
     CachedCall.inprocess_cache = InProcessCache()
예제 #8
0
 def after_setUp(self):
     cache.flush_all()