-
Notifications
You must be signed in to change notification settings - Fork 35
#39 - Let's discuss the approach and tests #40
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
Conversation
|
This pull request introduces 2 alerts and fixes 1 when merging 0b9845f into 4cf1049 - view on LGTM.com new alerts:
fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #40 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 3
Lines 114 114
=========================================
Hits 114 114 Continue to review full report at Codecov.
|
| def client(self): | ||
| return self._client | ||
|
|
||
| def execute_command(self, *args, **kwargs): |
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.
@radoye why not creating a decorator for all the client functions?
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.
Sure. I'm happy to clean up once it's ready for merging.
- Let's figure out if tests make sense, or I overlooked something.
- Except for hiding these trivial functions with a decorator, any other approach comments?
Here's a quick implementation, without going into all the details of redis-py/redis-py-cluster.
Before spending more time on this, it would be useful to hear comments on
Tests
Redis
On all my systems, a single failure happens both after and before my edits. Can you confirm/comment?
Redis Cluster
The same failure and a few errors. I'm not sure that these should pass for the cluster.
Can you comment?