-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Move mockredis to test requirements #115
Conversation
It is not necessary to be installed typically.
It might make sense to remove the |
2 similar comments
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.
Thanks, left a comment.
global MOCKED_REDIS | ||
if MOCKED_REDIS is None: | ||
import mockredis | ||
MOCKED_REDIS = mockredis.mock_strict_redis_client() |
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.
We can probably make this even more simple.
if config.MOCK_REDIS:
import mockredis
return mockredis.mock_strict_redis_client()
Then we can remove the MOCKED_REDIS
variable all together what do you think?
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.
Makes sense.
Please feel free to pick up this PR and/or do it from scratch - I've decided to not use django-defender, so will not update it myself.
Signed-off-by: Ken Cochrane <KenCochrane@gmail.com>
closing, and replacing with #119 |
It is not necessary to be installed typically.