TestKafkaBroker
faststream.confluent.test.TestKafkaBroker #
Bases: TestBroker[KafkaBroker]
A class to represent a test Kafka broker.
Initialize a class instance.
PARAMETER | DESCRIPTION |
---|---|
broker | An instance of the Broker class. TYPE: |
with_real | Whether to use a real broker. TYPE: |
connect_only | Whether to only connect to the broker. |
Source code in faststream/broker/test.py
create_publisher_fake_subscriber staticmethod
#
create_publisher_fake_subscriber(broker: KafkaBroker, publisher: Publisher) -> HandlerCallWrapper[Any, Any, Any]
Source code in faststream/confluent/test.py
patch_publisher staticmethod
#
patch_publisher(broker: KafkaBroker, publisher: Any) -> None
remove_publisher_fake_subscriber staticmethod
#
remove_publisher_fake_subscriber(broker: KafkaBroker, publisher: Publisher) -> None