Open beamerblvd opened 7 years ago
The signature of redis.Redis.from_url is as follows:
redis.Redis.from_url
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.
redis.Redis.from_url(url, **kwargs)
mock_redis_client
Submitted pull request #133.
The signature of
redis.Redis.from_url
is as follows:However, Mockredispy defines it as follows:
If
redis.Redis.from_url
is called with the valid argumentsredis.Redis.from_url(url, **kwargs)
, it results in an error from Mockredispy about too many arguments passed tomock_redis_client
.