The signature of redis.Redis.from_url
is as follows:
def from_url(cls, url, db=None, **kwargs)
However, Mockredispy defines it as follows:
def mock_redis_client(**kwargs):
return MockRedis()
mock_redis_client.from_url = mock_redis_client
If redis.Redis.from_url
is called with the valid arguments redis.Redis.from_url(url, **kwargs)
, it results in an error from Mockredispy about too many arguments passed to mock_redis_client
.