redismock

Mock for redis-py


License
Apache-2.0
Install
pip install redismock==1.0.5

Documentation

Mock for the redis-py client library

Supports writing tests for code using the redis-py library without requiring a redis-server install.

This package will hopefully (soon) cover entire redis-py offering

Install

pip install redismock

Usage

from redismock import mockmanager
redis_client = mockmanager.mock_redis_client()
redis_client.set("key","value")
redis_client.get("key")

Attribution

This code is shamelessly derived from work by John DeRosa and locationlabs.