We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While testing a redis walrus app in which I have the following function:
@cached_property def redis_connection(self): conn = self.db_factory(host=self.redis_host, port=self.redis_port) return conn.cache()
My test looks like
def test_dem_qe_cache_redis_connection(): redis_host = 'localhost' redis_port = 6379 db_factory = fakeredis.FakeRedis object = Cache( db_factory = db_factory, redis_host = redis_host, redis_port = redis_port ) assert object.redis_connection is not None
The output of the test is:
@cached_property def redis_connection(self): conn = self.db_factory(host=self.redis_host, port=self.redis_port) > return conn.cache() E AttributeError: 'FakeRedis' object has no attribute 'cache'
The text was updated successfully, but these errors were encountered:
I'm not sure why you'd expect a FakeRedis object to have a cache attribute. A Redis object doesn't have one either.
cache
Sorry, something went wrong.
Closing due to lack of further feedback.
No branches or pull requests
While testing a redis walrus app in which I have the following function:
My test looks like
The output of the test is:
The text was updated successfully, but these errors were encountered: