FakeProducer
faststream.redis.testing.FakeProducer #
FakeProducer(
broker: RedisBroker,
brokers: Sequence[RedisBroker],
config: ParserConfig,
)
Bases: RedisFastProducer
Source code in faststream/redis/testing.py
publish async #
publish(cmd: RedisPublishCommand) -> int | bytes
Source code in faststream/redis/testing.py
request async #
request(cmd: RedisPublishCommand) -> PubSubMessage
Source code in faststream/redis/testing.py
publish_batch async #
publish_batch(cmd: RedisPublishCommand) -> int