diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-09-30 13:35:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 13:35:10 +0300 |
commit | 6c70fcdd10cca7de15175a77824009babfac4417 (patch) | |
tree | a2143f99e26d2304cd433f9f358f0128ef4e1bc7 /tests/conftest.py | |
parent | bfc4cd92c8070de9bfa7736ef21b44eb6fe35ed9 (diff) | |
download | redis-py-6c70fcdd10cca7de15175a77824009babfac4417.tar.gz |
CLIENT REPLY support, available since redis 3.2.0 (#1581)
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index fe304c2..b9091a9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -101,6 +101,12 @@ def r(request): @pytest.fixture() +def r_timeout(request): + with _get_client(redis.Redis, request, socket_timeout=1) as client: + yield client + + +@pytest.fixture() def r2(request): "A second client for tests that need multiple" with _get_client(redis.Redis, request) as client: |