def stub_broker(): broker = StubBroker() broker.emit_after("process_boot") dramatiq.set_broker(broker) yield broker broker.flush_all() broker.close()
def broker(sentry_init): sentry_init(integrations=[DramatiqIntegration()]) broker = StubBroker() broker.emit_after("process_boot") dramatiq.set_broker(broker) yield broker broker.flush_all() broker.close()