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

Method test_channel_subscribe

tests/test_pubsub.py:1042–1046  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1040
1041class TestPubSubRedisDown:
1042 def test_channel_subscribe(self, r):
1043 r = redis.Redis(host="localhost", port=6390)
1044 p = r.pubsub()
1045 with pytest.raises(ConnectionError):
1046 p.subscribe("foo")
1047
1048
1049class TestPubSubSubcommands:

Callers

nothing calls this directly

Calls 2

pubsubMethod · 0.95
subscribeMethod · 0.45

Tested by

no test coverage detected