summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.py7
-rw-r--r--tests/test_json.py1
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index b8dc69f..510ec7d 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -557,6 +557,13 @@ class TestRedisCommands:
with pytest.raises(exceptions.RedisError):
r.client_pause(timeout="not an integer")
+ @skip_if_server_version_lt("6.2.0")
+ def test_client_pause_all(self, r, r2):
+ assert r.client_pause(1, all=False)
+ assert r2.set("foo", "bar")
+ assert r2.get("foo") == b"bar"
+ assert r.get("foo") == b"bar"
+
@pytest.mark.onlynoncluster
@skip_if_server_version_lt("6.2.0")
@skip_if_redis_enterprise()
diff --git a/tests/test_json.py b/tests/test_json.py
index 8bd1d77..6980e67 100644
--- a/tests/test_json.py
+++ b/tests/test_json.py
@@ -1428,6 +1428,5 @@ def test_set_path(client):
open(nojsonfile, "a+").write("hello")
result = {jsonfile: True, nojsonfile: False}
- print(result)
assert client.json().set_path(Path.rootPath(), root) == result
assert client.json().get(jsonfile.rsplit(".")[0]) == {"hello": "world"}