Files
notifications-api/run_celery.py
Martyn Inglis e42da7dd54 Fixing up tests to validate the call to the celery tasks.
- mocker used to test call or otherwise of the task
- no new tests just a spring clean
2016-02-16 14:06:56 +00:00

7 lines
187 B
Python

#!/usr/bin/env python
import os
from app import notify_celery, create_app
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
application.app_context().push()