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
This commit is contained in:
Martyn Inglis
2016-02-16 14:06:56 +00:00
parent 655beddba6
commit e42da7dd54
7 changed files with 129 additions and 136 deletions

View File

@@ -17,7 +17,7 @@ from app.clients.sms.twilio import TwilioClient
db = SQLAlchemy()
ma = Marshmallow()
notify_alpha_client = NotifyAPIClient()
celery = NotifyCelery()
notify_celery = NotifyCelery()
twilio_client = TwilioClient()
@@ -35,7 +35,7 @@ def create_app(config_name, config_overrides=None):
ma.init_app(application)
logging.init_app(application)
twilio_client.init_app(application)
celery.init_app(application)
notify_celery.init_app(application)
from app.service.rest import service as service_blueprint
from app.user.rest import user as user_blueprint