We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc7716 commit bdccdd9Copy full SHA for bdccdd9
test/test_fakeredis.py
@@ -5008,10 +5008,10 @@ def test_from_url_with_db_arg(self):
5008
assert db2.get('foo') == b'foo2'
5009
5010
def test_from_url_db_value_error(self):
5011
- # In ValueError, should default to 0
+ # In case of ValueError, should default to 0, or be absent in redis-py 4.0
5012
db = fakeredis.FakeStrictRedis.from_url(
5013
'redis://localhost:6379/a')
5014
- assert db.connection_pool.connection_kwargs['db'] == 0
+ assert db.connection_pool.connection_kwargs.get('db', 0) == 0
5015
5016
def test_can_pass_through_extra_args(self):
5017
0 commit comments