Working placeholders in subject with upgraded notifications-utils.

Fix test.
This commit is contained in:
Nicholas Staples
2016-04-13 15:31:08 +01:00
parent 3c4c9c18dc
commit 1b76646170
12 changed files with 68 additions and 35 deletions

View File

@@ -12,7 +12,7 @@ def test_create_invited_user(notify_api, sample_service, mocker):
with notify_api.test_request_context():
with notify_api.test_client() as client:
mocker.patch('app.celery.tasks.email_invited_user.apply_async')
mocker.patch('utils.url_safe_token.generate_token', return_value='the-token')
mocker.patch('notifications_utils.url_safe_token.generate_token', return_value='the-token')
email_address = 'invited_user@service.gov.uk'
invite_from = sample_service.users[0]