API - fix test
This commit is contained in:
parent
c797d4393e
commit
d2768c015c
@ -4,9 +4,8 @@ from dramatiq.brokers.redis import RedisBroker
|
|||||||
from dramatiq.brokers.stub import StubBroker
|
from dramatiq.brokers.stub import StubBroker
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
|
|
||||||
if os.getenv('APP_SETTINGS') == 'fittrackee_api.config.Testing':
|
if os.getenv('APP_SETTINGS') == 'fittrackee_api.config.TestingConfig':
|
||||||
broker = StubBroker
|
broker = StubBroker
|
||||||
broker.emit_after("process_boot")
|
|
||||||
else:
|
else:
|
||||||
broker = RedisBroker
|
broker = RedisBroker
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user