MCPcopy
hub / github.com/redis/redis-py / test_cluster_countkeysinslot

Method test_cluster_countkeysinslot

tests/test_cluster.py:1397–1400  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1395
1396 @skip_if_redis_enterprise()
1397 def test_cluster_countkeysinslot(self, r):
1398 node = r.nodes_manager.get_node_from_slot(1)
1399 mock_node_resp(node, 2)
1400 assert r.cluster_countkeysinslot(1) == 2
1401
1402 def test_cluster_count_failure_report(self, r):
1403 mock_all_nodes_resp(r, 0)

Callers

nothing calls this directly

Calls 3

mock_node_respFunction · 0.70
get_node_from_slotMethod · 0.45

Tested by

no test coverage detected