def tearDown(self): redis.flushdb()
def setUp(self): app.config['TESTING'] = True app.config['REDIS_DB'] = 1 # separate DB self.app = app.test_client() redis.flushdb()