summaryrefslogtreecommitdiff
path: root/tests/test_retry.py
diff options
context:
space:
mode:
authorAnas <anas.el.amraoui@live.com>2021-11-30 18:05:51 +0200
committerGitHub <noreply@github.com>2021-11-30 18:05:51 +0200
commitb94e230b17d08e6c89d134e933c706256b79bc4a (patch)
tree993bd7565169229326b810b66939587431ab9dc6 /tests/test_retry.py
parent368a25f9d163d784a8896f1c087582405e98e006 (diff)
downloadredis-py-b94e230b17d08e6c89d134e933c706256b79bc4a.tar.gz
Added black and isort (#1734)
Diffstat (limited to 'tests/test_retry.py')
-rw-r--r--tests/test_retry.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_retry.py b/tests/test_retry.py
index 535485a..c4650bc 100644
--- a/tests/test_retry.py
+++ b/tests/test_retry.py
@@ -1,8 +1,8 @@
-from redis.backoff import NoBackoff
import pytest
-from redis.exceptions import ConnectionError
+from redis.backoff import NoBackoff
from redis.connection import Connection, UnixDomainSocketConnection
+from redis.exceptions import ConnectionError
from redis.retry import Retry
@@ -34,8 +34,7 @@ class TestConnectionConstructorWithRetry:
@pytest.mark.parametrize("Class", [Connection, UnixDomainSocketConnection])
def test_retry_on_timeout_retry(self, Class, retries):
retry_on_timeout = retries > 0
- c = Class(retry_on_timeout=retry_on_timeout,
- retry=Retry(NoBackoff(), retries))
+ c = Class(retry_on_timeout=retry_on_timeout, retry=Retry(NoBackoff(), retries))
assert c.retry_on_timeout == retry_on_timeout
assert isinstance(c.retry, Retry)
assert c.retry._retries == retries