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
Here's some example code:
from mockredis import MockRedis from redis import Redis real_redis = Redis() mock_redis = MockRedis() real_redis.hset('answer', 'ultimate', 42) mock_redis.hset('answer', 'ultimate', 42) assert(real_redis.hget('answer', 'ultimate') == mock_redis.hget('answer', 'ultimate'))
mock_redis returns the integer 42, and real_redis returns the string '42', since everything in Redis is a string.
MockRedis should convert all values to strings.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here's some example code:
mock_redis returns the integer 42, and real_redis returns the string '42', since everything in Redis is a string.
MockRedis should convert all values to strings.
The text was updated successfully, but these errors were encountered: