summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-05-02 12:03:56 +0300
committerGitHub <noreply@github.com>2022-05-02 12:03:56 +0300
commit09a52dba48221353eafa8188d73ab97e8f4ccc49 (patch)
tree135665f2a588b722fddcc2d652a89658b4fe1cfd /tests/test_commands.py
parenteea88da8b78e1c0e3c8403f8ae756a7716a4abc1 (diff)
downloadredis-py-09a52dba48221353eafa8188d73ab97e8f4ccc49.tar.gz
Implemented LATENCY HISTOGRAM by always throwing NotImplementedError (#2147)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py
index c8edd57..11c9939 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -4458,6 +4458,11 @@ class TestRedisCommands:
r.set("foo", "bar")
assert isinstance(r.memory_usage("foo"), int)
+ @skip_if_server_version_lt("7.0.0")
+ def test_latency_histogram_not_implemented(self, r: redis.Redis):
+ with pytest.raises(NotImplementedError):
+ r.latency_histogram()
+
@pytest.mark.onlynoncluster
@skip_if_server_version_lt("4.0.0")
@skip_if_redis_enterprise()