MCPcopy
hub / github.com/Bogdanp/dramatiq / rabbitmq_broker

Function rabbitmq_broker

tests/conftest.py:64–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63@pytest.fixture()
64def rabbitmq_broker():
65 broker = RabbitmqBroker(
66 host="127.0.0.1",
67 max_priority=10,
68 credentials=RABBITMQ_CREDENTIALS,
69 )
70 check_rabbitmq(broker)
71 broker.emit_after("process_boot")
72 dramatiq.set_broker(broker)
73 yield broker
74 broker.flush_all()
75 broker.close()
76
77
78@pytest.fixture()

Callers

nothing calls this directly

Calls 5

flush_allMethod · 0.95
closeMethod · 0.95
RabbitmqBrokerClass · 0.90
check_rabbitmqFunction · 0.85
emit_afterMethod · 0.80

Tested by

no test coverage detected