TestNatsBroker
faststream.nats.testing.TestNatsBroker #
TestNatsBroker(
broker: NatsBroker,
/,
*,
with_real: bool = False,
connect_only: bool | None = None,
)
TestNatsBroker(
*brokers: NatsBroker,
with_real: bool = False,
connect_only: bool | None = None,
)
TestNatsBroker(
*brokers: NatsBroker,
with_real: bool = False,
connect_only: bool | None = None,
)
Bases: TestBroker[NatsBroker, EnterType]
A class to test NATS brokers.
Source code in faststream/nats/testing.py
77 78 79 80 81 82 83 84 85 86 87 | |
create_publisher_fake_subscriber #
create_publisher_fake_subscriber(
broker: NatsBroker, publisher: LogicPublisher
) -> tuple[LogicSubscriber[Any], bool]
Source code in faststream/nats/testing.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |