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

Method test_channel_publish

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

Source from the content-addressed store, hash-verified

936 )
937
938 def test_channel_publish(self, r):
939 p = r.pubsub()
940 p.subscribe(self.channel)
941 assert wait_for_message(p) == self.make_message("subscribe", self.channel, 1)
942 r.publish(self.channel, self.data)
943 assert wait_for_message(p) == self.make_message(
944 "message", self.channel, self.data
945 )
946
947 @pytest.mark.onlynoncluster
948 def test_pattern_publish(self, r):

Callers

nothing calls this directly

Calls 5

make_messageMethod · 0.95
publishMethod · 0.80
wait_for_messageFunction · 0.70
pubsubMethod · 0.45
subscribeMethod · 0.45

Tested by

no test coverage detected