API - fix test

This commit is contained in:
Sam 2020-07-15 07:45:01 +02:00
parent c797d4393e
commit d2768c015c

View File

@ -4,9 +4,8 @@ from dramatiq.brokers.redis import RedisBroker
from dramatiq.brokers.stub import StubBroker
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.emit_after("process_boot")
else:
broker = RedisBroker