Skip to content
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 HLEN command #944

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Python: adds HLEN command #944

merged 1 commit into from
Feb 13, 2024

Conversation

shohamazon
Copy link
Member

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.

@shohamazon shohamazon requested a review from a team as a code owner February 12, 2024 11:50
@shohamazon shohamazon force-pushed the python/hlen branch 2 times, most recently from 1be930f to f357811 Compare February 12, 2024 13:01
assert await redis_client.hlen(key) == 2
assert await redis_client.hdel(key, [field]) == 1
assert await redis_client.hlen(key) == 1
assert await redis_client.hlen("non_existing_hash") == 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a pytest.raises test for a key that holds different type

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@shohamazon shohamazon merged commit 396bb6d into aws:main Feb 13, 2024
27 checks passed
@shohamazon shohamazon deleted the python/hlen branch February 13, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants