diff options
author | Chayim <chayim@users.noreply.github.com> | 2022-12-12 10:18:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 10:18:10 +0200 |
commit | 3a121bef7bbc5bb5f07b119b0eef2f7527a38eda (patch) | |
tree | 62c8ec95486ffe31d6c084a3b0b22fc4987bf757 /tests/test_commands.py | |
parent | 6219574b042a6596b150ca8248441198f01f8c87 (diff) | |
download | redis-py-3a121bef7bbc5bb5f07b119b0eef2f7527a38eda.tar.gz |
Intentional NotImplementedError for LATENCY commands that should not be in client (#2501)
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index aa6745b..77e2e72 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -4527,6 +4527,16 @@ class TestRedisCommands: with pytest.raises(NotImplementedError): r.latency_histogram() + @skip_if_server_version_lt("7.0.0") + def test_latency_graph_not_implemented(self, r: redis.Redis): + with pytest.raises(NotImplementedError): + r.latency_graph() + + @skip_if_server_version_lt("7.0.0") + def test_latency_doctor_not_implemented(self, r: redis.Redis): + with pytest.raises(NotImplementedError): + r.latency_doctor() + @pytest.mark.onlynoncluster @skip_if_server_version_lt("4.0.0") @skip_if_redis_enterprise() |