-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
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
Python: adds ZPOPMAX command #996
Conversation
c5d903b
to
30ee76f
Compare
async def test_zpopmax(self, redis_client: TRedisClient): | ||
key = get_random_string(10) | ||
members_scores = {"a": 1.0, "b": 2.0, "c": 3.0} | ||
assert await redis_client.zadd(key, members_scores=members_scores) == 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor- why are you passing the name of the argument, members_scores=members_scores?
members_scores = {"a": 1.0, "b": 2.0, "c": 3.0} | ||
assert await redis_client.zadd(key, members_scores=members_scores) == 3 | ||
assert await redis_client.zpopmax(key) == {"c": 3.0} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove newline
30ee76f
to
9f88359
Compare
@@ -107,6 +107,7 @@ enum RequestType { | |||
HLen = 69; | |||
Echo = 70; | |||
ZPopMin = 71; | |||
ZPopMax=72; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ZPopMax=72; | |
ZPopMax = 72; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add a linter for protobuf files
9f88359
to
aec77a0
Compare
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.