summaryrefslogtreecommitdiff
path: root/tests/test_connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_connection.py')
-rw-r--r--tests/test_connection.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_connection.py b/tests/test_connection.py
index 75ba738..31268a9 100644
--- a/tests/test_connection.py
+++ b/tests/test_connection.py
@@ -205,3 +205,11 @@ def test_pack_command(Class):
actual = Class().pack_command(*cmd)[0]
assert actual == expected, f"actual = {actual}, expected = {expected}"
+
+
+@pytest.mark.onlynoncluster
+def test_create_single_connection_client_from_url():
+ client = redis.Redis.from_url(
+ "redis://localhost:6379/0?", single_connection_client=True
+ )
+ assert client.connection is not None