File tree Expand file tree Collapse file tree
packages/faststream-stomp/faststream_stomp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 "StompSubscriber" ,
1717 "TestStompBroker" ,
1818]
19+
20+ try : # noqa: RUF067
21+ import functools
22+ import typing
23+
24+ import faststream .asgi .factories .asyncapi .try_it_out
25+ from faststream ._internal .broker import BrokerUsecase
26+ from faststream ._internal .testing .broker import TestBroker
27+
28+ original_get_broker_registry = faststream .asgi .factories .asyncapi .try_it_out ._get_broker_registry
29+
30+ @functools .lru_cache (maxsize = 1 )
31+ def get_broker_registry () -> dict [type [BrokerUsecase [typing .Any , typing .Any ]], type [TestBroker [typing .Any ]]]:
32+ return {** original_get_broker_registry (), StompBroker : TestStompBroker }
33+
34+ faststream .asgi .factories .asyncapi .try_it_out ._get_broker_registry = get_broker_registry
35+ except Exception : # noqa: BLE001, S110
36+ pass
You can’t perform that action at this time.
0 commit comments