Rename first send_email to send_email_v1.

Fix the tests
This commit is contained in:
Rebecca Law
2016-06-13 16:16:56 +01:00
parent cd2627e5ed
commit a6ce109c62
7 changed files with 51 additions and 41 deletions

View File

@@ -28,7 +28,7 @@ from app.schemas import (
from app.celery.tasks import (
send_sms,
email_reset_password,
send_email_v2)
send_email)
from app.errors import register_errors
@@ -166,7 +166,7 @@ def send_user_email_verification(user_id):
'url': _create_verification_url(user_to_send_to, secret_code)
}
}
send_email_v2.apply_async((
send_email.apply_async((
current_app.config['NOTIFY_SERVICE_ID'],
str(uuid.uuid4()),
encryption.encrypt(message),