From d2768c015c9db1e23311aed3abda0dd95118d73e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 15 Jul 2020 07:45:01 +0200 Subject: [PATCH] API - fix test --- fittrackee_api/fittrackee_api/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fittrackee_api/fittrackee_api/config.py b/fittrackee_api/fittrackee_api/config.py index 7f04c29c..971f7cbb 100644 --- a/fittrackee_api/fittrackee_api/config.py +++ b/fittrackee_api/fittrackee_api/config.py @@ -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