def setup_method(self, method): with app.test_client() as tc: self.app = tc
def teardown_method(self, method): with app.test_client() as tc: keys_to_delete = redis_store.keys('USER_BANNER_*') for k in keys_to_delete: redis_store.delete(k)
def teardown_method(self, method): with app.test_client() as tc: redis_store.delete(BANNER_REDIS_KEY)