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

Function redis_broker

tests/conftest.py:79–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78@pytest.fixture()
79def redis_broker():
80 broker = RedisBroker()
81 check_redis(broker.client)
82 broker.client.flushall()
83 broker.emit_after("process_boot")
84 dramatiq.set_broker(broker)
85 yield broker
86 broker.client.flushall()
87 broker.close()
88
89
90@pytest.fixture()

Callers

nothing calls this directly

Calls 4

RedisBrokerClass · 0.90
check_redisFunction · 0.85
emit_afterMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected