summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-12-14 14:04:57 +0200
committerGitHub <noreply@github.com>2022-12-14 14:04:57 +0200
commit022a3e8314daa59b31fdce1d32e0e74d77f564cc (patch)
tree916dbd24def3eeab8f62626956d449045c21592c /tests
parentb556440949799dca2110cd3a17738dc6a5e1516a (diff)
downloadredis-py-022a3e8314daa59b31fdce1d32e0e74d77f564cc.tar.gz
Raising NotImplementedError for certain CLUSTER commands (#2504)
Co-authored-by: Chayim <chayim@users.noreply.github.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cluster.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_cluster.py b/tests/test_cluster.py
index e45780d..9866cfc 100644
--- a/tests/test_cluster.py
+++ b/tests/test_cluster.py
@@ -1289,6 +1289,14 @@ class TestClusterRedisCommands:
for i in range(0, len(res) - 1, 2):
assert res[i][3] == res[i + 1][3]
+ def test_cluster_flshslots_not_implemented(self, r):
+ with pytest.raises(NotImplementedError):
+ r.cluster_flushslots()
+
+ def test_cluster_bumpepoch_not_implemented(self, r):
+ with pytest.raises(NotImplementedError):
+ r.cluster_bumpepoch()
+
@skip_if_redis_enterprise()
def test_readonly(self):
r = get_mocked_redis_client(host=default_host, port=default_port)