unit test

This commit is contained in:
Curtis Castrapel
2018-11-28 14:27:03 -08:00
parent 2381d0a4bb
commit e074a14ee9
7 changed files with 22 additions and 12 deletions

View File

@ -25,8 +25,8 @@ flask_app = create_app()
def make_celery(app):
celery = Celery(app.import_name, backend=app.config['CELERY_RESULT_BACKEND'],
broker=app.config['CELERY_BROKER_URL'])
celery = Celery(app.import_name, backend=app.config.get('CELERY_RESULT_BACKEND'),
broker=app.config.get('CELERY_BROKER_URL'))
celery.conf.update(app.config)
TaskBase = celery.Task