summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index b3a2e5b..89b9b58 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -2,8 +2,8 @@ import pytest
import redis
-def _get_client(cls, request=None):
- client = cls(host='localhost', port=6379, db=9)
+def _get_client(cls, request=None, **kwargs):
+ client = cls(host='localhost', port=6379, db=9, **kwargs)
client.flushdb()
if request:
request.addfinalizer(client.flushdb)
@@ -17,10 +17,10 @@ def skip_if_server_version_lt(min_version):
@pytest.fixture()
-def r(request):
- return _get_client(redis.Redis, request)
+def r(request, **kwargs):
+ return _get_client(redis.Redis, request, **kwargs)
@pytest.fixture()
-def sr(request):
- return _get_client(redis.StrictRedis, request)
+def sr(request, **kwargs):
+ return _get_client(redis.StrictRedis, request, **kwargs)