Update invite user endpoint to set the reply_to_text on the notification.

Update v1 post notifications to set the reply_to_text on the notification.
This commit is contained in:
Rebecca Law
2017-11-27 12:30:50 +00:00
parent 12024e9619
commit 530f2e7f6a
5 changed files with 69 additions and 13 deletions

View File

@@ -33,6 +33,7 @@ def test_create_invited_user(admin_request, sample_service, mocker, invitation_e
assert json_resp['data']['id']
notification = Notification.query.first()
assert notification.reply_to_text == "notify@gov.uk"
mocked.assert_called_once_with([(str(notification.id))], queue="notify-internal-tasks")