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

Method _make_pubsub

tests/test_cluster.py:3619–3625  ·  view source on GitHub ↗

Create a ClusterPubSub with no node set, using the provided cluster mock.

(self, cluster_mock)

Source from the content-addressed store, hash-verified

3617 """
3618
3619 def _make_pubsub(self, cluster_mock):
3620 """Create a ClusterPubSub with no node set, using the provided cluster mock."""
3621 from redis._parsers import Encoder
3622 from redis.cluster import ClusterPubSub
3623
3624 cluster_mock.encoder = Encoder("utf-8", "strict", False)
3625 return ClusterPubSub(cluster_mock)
3626
3627 def test_get_node_pubsub_uses_cluster_get_redis_connection(self):
3628 """

Calls 2

EncoderClass · 0.90
ClusterPubSubClass · 0.90

Tested by

no test coverage detected