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
Describe the bug I'm on fakeredis-py 2.18.0
When a stream exists, and using scan_iter(_type='XXX'), we hit the following assert:
scan_iter(_type='XXX')
key = <fakeredis._commands.Item object at 0x10feaad40> def key_value_type(key): if key.value is None: return SimpleString(b'none') elif isinstance(key.value, bytes): return SimpleString(b'string') elif isinstance(key.value, list): return SimpleString(b'list') elif isinstance(key.value, set): return SimpleString(b'set') elif isinstance(key.value, ZSet): return SimpleString(b'zset') elif isinstance(key.value, dict): return SimpleString(b'hash') else: > assert False # pragma: nocover E AssertionError
To Reproduce
from fakeredis import FakeRedis r = FakeRedis() r.xadd("mystream", { "test": "value" }) for s in r.scan_iter(_type="STRING"): print(s)
Expected behavior
Doesn't assert, Stream keys are enumerated (or filtered out) just like any other key.
Desktop (please complete the following information):
Additional context
Thank you!
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
I'm on fakeredis-py 2.18.0
When a stream exists, and using
scan_iter(_type='XXX')
, we hit the following assert:To Reproduce
Expected behavior
Doesn't assert, Stream keys are enumerated (or filtered out) just like any other key.
Desktop (please complete the following information):
Additional context
Thank you!
The text was updated successfully, but these errors were encountered: