TestRedisBroker
faststream.redis.testing.TestRedisBroker #
TestRedisBroker(
broker: RedisBroker,
/,
*,
with_real: bool = False,
connect_only: bool | None = None,
pel: PEL | None = None,
)
TestRedisBroker(
*brokers: RedisBroker,
with_real: bool = False,
connect_only: bool | None = None,
pel: PEL | None = None,
)
TestRedisBroker(
*brokers: RedisBroker,
with_real: bool = False,
connect_only: bool | None = None,
pel: PEL | None = None,
)
Bases: TestBroker[RedisBroker, EnterType]
A class to test Redis brokers.
Source code in faststream/redis/testing.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
create_publisher_fake_subscriber #
create_publisher_fake_subscriber(
broker: RedisBroker, publisher: LogicPublisher
) -> tuple[LogicSubscriber, bool]
Source code in faststream/redis/testing.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |